Jump to content
Sign in to follow this  
engima

Change player class in mission

Recommended Posts

Hi!

Is it possible to change unit class of a player in mission? Let's say that you can only select Riflemen in the lobby, so you spawn as a rifleman, but later in game you want to let players "convert" to other roles, like into a pilot.

I have seen some threads about the selectPlayer command, but they seem to say that it's just possible to change unit class into *another unit already in mission*. Is it so? I would like to be able to convert a player into a pilot in a mission where no pilots exist.

Share this post


Link to post
Share on other sites

You can just give the player a different uniform/vest/backpack/helmet nowadays.

Share this post


Link to post
Share on other sites
You can just give the player a different uniform/vest/backpack/helmet nowadays.

How would giving my rifleman a new hat turn him into a medic?

Have a look at selectPlayer, Engima.

Share this post


Link to post
Share on other sites
// you are unit1
addSwitchableUnit unit2;
selectPlayer unit2;
removeSwitchableUnit unit1;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×