OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: HedgeHog on 15 Oct 2008, 23:15:53

Title: How to change playing character
Post by: HedgeHog on 15 Oct 2008, 23:15:53
Hi there folks! :D

I need to simulate the clothes changing, so I need to replace the player with another soldier (with different uniform).
Basically, I need to jump in another soldier's boots after the ending of an in-game cutscene I've already made.

So which lines should I use at the end of the camscript to make me get the control of the new character after the cutscene?

thx! :D :)
Title: Re: How to change playing character
Post by: Spooner on 15 Oct 2008, 23:43:31
Well, you can do this with team-switching if you are the player, but to force it from a script, use selectPlayer (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=s#701).
Title: Re: How to change playing character
Post by: HedgeHog on 16 Oct 2008, 15:35:47
I didn't imagine it was that* simple! :good:


Thank you a lot!

Bye! ;)