Jump to content
kerozen

Changing player class

Recommended Posts

My group is trying to transition from VTS (its causing lots of problems) and creating a new Mission base for our co-op mission. VTS had a really handy feature that made it  possible to change class ingame. If i joined as an Engineer i could change to a Medic. I tried finding a script for that but with no luck.

 

Is it possible? 

Share this post


Link to post
Share on other sites
Here is snipped where you can check for particular skill of class. ( 1 - have attribute, 0 - dont have attribute )
_demo = getNumber (configFile >> "CfgVehicles" >> _playerclass >> "candeactivatemines");
_specOps = getNumber (configFile >> "CfgVehicles" >> _playerclass >> "canhidebodies");
_engineer = getNumber (configFile >> "CfgVehicles" >> _playerclass >> "engineer");
_medic = getNumber (configFile >> "CfgVehicles" >> _playerclass >> "attendant");

Don't know how to set this atribute to player / unit.

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

×