isFormationLeader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *U([a-z ])" to "$1 - u$2")
 
(45 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= arma1
|version1= 1.00


|1.00|= Game version
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| Returns true if the specified unit is subgroup leader. |DESCRIPTION=
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| '''isFormationLeader''' unit |SYNTAX=
|game4= tkoh
|version4= 1.00


|p1= unit: [[Object]] - Unit being checked. |PARAMETER1=
|game5= arma3
|version5= 0.50


| [[Boolean]] - [[true]] if unit is subgroup leader. |RETURNVALUE=
|gr1= Groups


____________________________________________________________________________________________
|descr= Returns true if the specified unit is subgroup leader.
|x1= <code>_isLeader = [[isFormationLeader]] [[player]];</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[formationLeader]], [[formLeader]], [[leader]], [[selectLeader]] |SEEALSO=
|s1= [[isFormationLeader]] unit


}}
|p1= unit: [[Object]] - unit being checked.


<h3 style="display:none">Notes</h3>
|r1= [[Boolean]] - [[true]] if unit is subgroup leader.
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>_isLeader = isFormationLeader player;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[commandFollow]] [[doFollow]] [[formationLeader]] [[formLeader]] [[leader]] [[selectLeader]] [[setLeader]]
[[Category:Scripting Commands|ISFORMATIONLEADER]]
}}
[[Category:Scripting Commands ArmA|ISFORMATIONLEADER]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:52, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns true if the specified unit is subgroup leader.
Groups:
Groups

Syntax

Syntax:
isFormationLeader unit
Parameters:
unit: Object - unit being checked.
Return Value:
Boolean - true if unit is subgroup leader.

Examples

Example 1:
_isLeader = isFormationLeader player;

Additional Information

See also:
commandFollow doFollow formationLeader formLeader leader selectLeader setLeader

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