isFormationLeader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *U([a-z ])" to "$1 - u$2")
 
(61 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|ISFORMATIONLEADER]]
{{RV|type=command
[[Category:Scripting Commands ArmA|ISFORMATIONLEADER]]


|game1= arma1
|version1= 1.00


<h2 style="color:#000066">''' isFormationLeader ''person'''''</h2>
|game2= arma2
|version2= 1.00


|game3= arma2oa
|version3= 1.50


'''Operand types:'''
|game4= tkoh
|version4= 1.00


'''person:''' [[Object]]
|game5= arma3
|version5= 0.50


'''Type of returned value:'''
|gr1= Groups


[[Number]]
|descr= Returns true if the specified unit is subgroup leader.


'''Compatibility:'''
|s1= [[isFormationLeader]] unit


Version 2.92 required.
|p1= unit: [[Object]] - unit being checked.


'''Description:'''
|r1= [[Boolean]] - [[true]] if unit is subgroup leader.


Returns true if the specified person is subgroup leader.
|x1= <sqf>_isLeader = isFormationLeader player;</sqf>
 
|seealso= [[commandFollow]] [[doFollow]] [[formationLeader]] [[formLeader]] [[leader]] [[selectLeader]] [[setLeader]]
}}

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