isFormationLeader: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (syntax format) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns true if the specified unit is subgroup leader. |= | | Returns true if the specified unit is subgroup leader. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''isFormationLeader''' unit |= | | '''isFormationLeader''' unit |SYNTAX= | ||
|p1= unit: [[Object]] - Unit being checked. |= | |p1= unit: [[Object]] - Unit being checked. |PARAMETER1= | ||
| [[Boolean]] - [[true]] if unit is subgroup leader. |= | | [[Boolean]] - [[true]] if unit is subgroup leader. |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_isLeader = [[isFormationLeader]] [[player]];</code> |= | |x1= <code>_isLeader = [[isFormationLeader]] [[player]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[formationLeader]], [[formLeader]], [[leader]], [[selectLeader]] |= | | [[formationLeader]], [[formLeader]], [[leader]], [[selectLeader]] |SEEALSO= | ||
}} | }} |
Revision as of 14:41, 7 April 2019
Description
- Description:
- Returns true if the specified unit is subgroup leader.
- Groups:
- Uncategorised
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
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