Home   Help Search Login Register  

Author Topic: How to change playing character  (Read 1127 times)

0 Members and 1 Guest are viewing this topic.

Offline HedgeHog

  • Members
  • *
How to change playing character
« 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 :)

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: How to change playing character
« Reply #1 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.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline HedgeHog

  • Members
  • *
Re: How to change playing character
« Reply #2 on: 16 Oct 2008, 15:35:47 »
I didn't imagine it was that* simple! :good:


Thank you a lot!

Bye! ;)