{"name":"setLeader","title":"setLeader","type":"command","url":"https://community.bistudio.com/wiki/setLeader","revid":330647,"updated":"2022-10-03T11:09:06Z","groups":["Teams"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"argument":"local","effect":"local"},"description":"> [!IMPORTANT]\n> To set a Group leader, see selectLeader.\n\nSet the leader of the given Team. Effect is local, unless both leader unit and team are local to PC on which command is executed, then effect is global.","syntaxes":[{"syntax":"team setLeader leader","params":[{"name":"team","type":"Team Member","type_expr":"Team Member"},{"name":"leader","type":"Team Member","type_expr":"Team Member"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"team"},"right":{"text":"leader"}}],"see_also":["commandFollow","doFollow","formationLeader","formLeader","isFormationLeader","leader","selectLeader"]}