leader: Difference between revisions

From Bohemia Interactive Community
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]] |= Syntax
| [[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


____________________________________________________________________________________________
|s2= [[Object#Unit|Unit]] <nowiki>=</nowiki> '''leader''' [[Group]]|= Syntax
|p21 = [[Group]]
|r2= [[Object]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 02:58, 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 UnitOrGroup
Parameters:
UnitOrGroup: Unit or 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