Jump to content
Sign in to follow this  
jdberg2003@gmail.com

Need help with selectLeader in multiplayer.

Recommended Posts

I use the following code while playing as the host and it works:

if (_killed == BluCommander) then {sleep 7; [bluCommander] join BCGroup; sleep 2; BCGroup selectLeader BluCommander; 0 = ["Kill.sqf","BIS_fnc_execVM",west,false] spawn BIS_fnc_MP;};

When the BluCommander is killed he is successfully added to BCGroup, but he is not made the leader of that group. The code 0 = ["Kill.sqf","BIS_fnc_execVM",west,false] spawn BIS_fnc_MP;} is just in there to confirm that everything is executing, and it is. I have the script set to execute on the host only, if (! isServer) exitWith {};, and this must be the problem because it works when I am playing as host (not playing on dedicated server).

Thanks for any help you can offer :)

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  

×