leader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (add. see also)
mNo edit summary
Line 12: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''leader''' unit |= Syntax
| [[Object#Unit|Unit]] <nowiki>=</nowiki> '''leader''' [[Object#Unit|Unit]] |= Syntax


|p1 = unit: [[Object]]
|p1 = [[Object#Unit|Unit]]


| [[Object]] |= Return value
| [[Object]] |= Return value
Line 20: Line 20:
____________________________________________________________________________________________
____________________________________________________________________________________________


|s2= '''leader''' grp |= Syntax
|s2= [[Object#Unit|Unit]] <nowiki>=</nowiki> '''leader''' [[Group]]|= Syntax


|p21 = grp: [[Group]]
|p21 = [[Group]]


|r2= [[Object]] |= Return value
|r2= [[Object]] |= Return value

Revision as of 02:53, 28 August 2007

Hover & click on the images for description

Description

Description:
Returns the group leader for the given unit or group. For dead units, objNull is returned.
Groups:
Uncategorised

Syntax

Syntax:
Unit = leader Unit
Parameters:
Unit
Return Value:
Object

Alternative Syntax

Syntax:
Unit = leader Group
Parameters:
Group
Return Value:
Object

Examples

Example 1:
leader group player == leader player
Example 2:
_GroupLeader = leader (group (vehicle player))
Example 3:
_UnitLeader = leader player

Additional Information

See also:
formationLeaderformLeaderisFormationLeaderselectLeader

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

Notes

Bottom Section