leader: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (merged alt syntax) |
||
Line 12: | Line 12: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Object#Unit|Unit]] <nowiki>=</nowiki> '''leader''' | | [[Object#Unit|Unit]] <nowiki>=</nowiki> '''leader''' UnitOrGroup |= Syntax | ||
|p1 = [[Object#Unit|Unit]] | |p1 =UnitOrGroup: [[Object#Unit|Unit]] or [[Group]] | ||
| [[Object]] |= Return value | | [[Object]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 02:58, 28 August 2007
Description
- Description:
- Returns the group leader for the given unit or group. For dead units, objNull is returned.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
leader group player == leader player
- Example 2:
_GroupLeader = leader (group (vehicle player))
- Example 3:
_UnitLeader = leader 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