alleycat 28 Posted November 19, 2014 is there something like a setleader command? I have a script in which I want to mark a unit in a group to be its leader. And so far only completely disassembling it and creating new group works. I have tried to change ranks but that has no immediate rank change. Share this post Link to post Share on other sites
Heeeere's johnny! 51 Posted November 19, 2014 (edited) How 'bout this? https://community.bistudio.com/wiki/setLeader Be aware that the effect is local unless both leader unit and team are local to the machine this command is executed on. So if you use this in multiplayer with a group of players, you need to execute this command using BIS_fnc_MP: [[_myTeam, player], "setLeader", true, false, true] call BIS_fnc_MP Edited November 19, 2014 by Heeeere's Johnny! Share this post Link to post Share on other sites
alleycat 28 Posted November 19, 2014 Having problems with the _myteam variable. Using a group does not work: _grp = group _unit; [[_grp, _unit], "setLeader", true, false, true] call BIS_fnc_MP; Error setleader: Type Group, expected Team member Could it be the setleader command is using the sub-squad level teams (which squad leaders can create) for that? Share this post Link to post Share on other sites
cuel 25 Posted November 19, 2014 Looks deprecated. Try https://community.bistudio.com/wiki/selectLeader Share this post Link to post Share on other sites
das attorney 857 Posted November 19, 2014 Try the same sort of thing but with https://community.bistudio.com/wiki/selectLeader It will set the leader of the gruppe for you. Local args and global eff so run with BIS_fnc_MP. Test if group is local with localGroup. EDIT: Ninja'd Share this post Link to post Share on other sites