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 :)