isFormationLeader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(syntax format)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *U([a-z ])" to "$1 - u$2")
 
(46 intermediate revisions by 4 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. |= Parameter 1
|game5= arma3
|version5= 0.50


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


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


| [[formationLeader]], [[formLeader]], [[leader]], [[selectLeader]] |= See also
|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 16: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