isFormationLeader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(+ category)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *U([a-z ])" to "$1 - u$2")
 
(57 intermediate revisions by 12 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 person is subgroup leader. |= Description
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| '''isFormationLeader''' person |= Syntax
|game4= tkoh
|version4= 1.00


|p1= person: [[Object]] |= Parameter 1
|game5= arma3
|version5= 0.50


| [[Boolean]] |= Return value
|gr1= Groups
____________________________________________________________________________________________


| |= See also
|descr= Returns true if the specified unit is subgroup leader.


}}
|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:_Unit_Control|{{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