Jump to content
Sign in to follow this  
FOX Dome

Change SoldierClass In mp mission Help

Recommended Posts

Hello guys I have a Question is it possible to change a Players Soldierclass in a Running mission to a different class?

Example :

B_soldier_f becomes B_soldier_Engeener and gets the Engeener skill

or is there an alternative like Give Every unit the Engeener/Demo/Medicman Skills.

Edited by rAMMY

Share this post


Link to post
Share on other sites

Nope, those are predefined in the config. Not changeable at runtime.

Your best bet would be to use a unit that can do it all (not sure if there is any by default) and just differentiate their loadouts.

Share this post


Link to post
Share on other sites

okay but new idear How about switchplayer in Multiplayer? So the loadout script starts Creats a new unit(examp: an engeener) and the player gets switched to the "new" unit and than gets his Gear is that possible?

Share this post


Link to post
Share on other sites

Haven't used it for a while but you could experiment with https://community.bistudio.com/wiki/selectPlayer, though it might make things a bit tricky.

Be careful as it could potentially break thirdparty scripts (revivesystems and such) that run for the player.

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  

×