setLeader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 11: Line 10:


|gr1= Teams |GROUP1=
|gr1= Teams |GROUP1=
____________________________________________________________________________________________


| Set the leader of given team. Effect is local, unless both leader unit and team are local to PC on which command is executed, then effect is global. |DESCRIPTION=
| Set the leader of given team. Effect is local, unless both leader unit and team are local to PC on which command is executed, then effect is global. |DESCRIPTION=
____________________________________________________________________________________________


| team '''setLeader''' leader |SYNTAX=
| team '''setLeader''' leader |SYNTAX=
Line 29: Line 26:
|x1= <code>(example)</code>|EXAMPLE1=  
|x1= <code>(example)</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[commandFollow]], [[doFollow]], [[formationLeader]], [[formLeader]], [[isFormationLeader]], [[leader]], [[selectLeader]] |SEEALSO=
| [[commandFollow]], [[doFollow]], [[formationLeader]], [[formLeader]], [[isFormationLeader]], [[leader]], [[selectLeader]] |SEEALSO=


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 02:37, 17 January 2021

Hover & click on the images for description

Description

Description:
Set the leader of given team. Effect is local, unless both leader unit and team are local to PC on which command is executed, then effect is global.
Groups:
Teams

Syntax

Syntax:
team setLeader leader
Parameters:
team: Team Member
leader: Team Member
Return Value:
Nothing

Examples

Example 1:
(example)

Additional Information

See also:
commandFollowdoFollowformationLeaderformLeaderisFormationLeaderleaderselectLeader

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section