Jump to content
Sign in to follow this  
2nd47

Changing a player's team and slot upon death

Recommended Posts

I've come across another issue I'm having and I'm wondering if it's possible and if so how would I go about changing a player's side and team slot upon death. By this I mean: Blufor1 gets killed by Opfor1 dies, he then automatically switches teams and becomes Opfor3 and spawns as that. If this is possible it would be much appreciated if you would help me out, thanks.

Share this post


Link to post
Share on other sites

I'm not sure if you can change team/side in MP but this code shows you how to change body..

    _o = player ;
    enableTeamSwitch true ;

    _dg = createGroup west ;
    _n = _dg createUnit ["WildBoar", position player, [], 0, "NONE"];
    addSwitchableUnit _n ;
    selectPlayer _n;
    removeswitchableUnit _n ;
    deleteVehicle _o ;

Share this post


Link to post
Share on other sites

There's a particular game type I have in mind where this would be useful :-)

Share this post


Link to post
Share on other sites
There's a particular game type I have in mind where this would be useful :-)

As do I :-)

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  

×