leader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Removed wrong category)
m (All in one)
Line 1: Line 1:
'''leader''' can refer to these scripting commands:
{{Command|= Comments
*[[leader unit]] - Returns the group leader for the given unit.
____________________________________________________________________________________________
*[[leader grp]] - Returns the group leader for the given group.


| ofp |= Game name


{{Disambig}}
|1.00|= Game version
 
|arg= global |= Arguments in MP
____________________________________________________________________________________________
 
|Returns the group leader for the given unit or group. For dead units, objNull is returned.  |= Description
____________________________________________________________________________________________
 
| '''leader''' unit |= Syntax
 
|p1 = unit: [[Object]]
 
| [[Object]] |= Return value
 
____________________________________________________________________________________________
 
|s2= '''leader''' grp |= Syntax
 
|p21 = grp: [[Group]]
 
|r2= [[Object]] |= Return value
____________________________________________________________________________________________
 
|x1 =<code>leader [[group]] [[player]] <nowiki>==</nowiki> leader [[player]] </code>
 
|  |= See also
 
}}
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|LEADERUNIT]]
[[Category:Scripting Commands OFP 1.96|LEADERUNIT]]
[[Category:Scripting Commands OFP 1.46|LEADERUNIT]]
[[Category:Scripting Commands ArmA|LEADERUNIT]]
[[Category:Command_Group:_Groups]]

Revision as of 20:19, 24 October 2006

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:
leader unit
Parameters:
unit: Object
Return Value:
Object

Alternative Syntax

Syntax:
leader grp
Parameters:
grp: Group
Return Value:
Object

Examples

Example 1:
leader group player == leader player

Additional Information

See also:
See also needed

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