leader: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category:[cC]ommand[_ ][gG]roup:[_ ][^|]+\|\{*uc:{{PAGENAME}*]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| ofp | | ofp | ||
|1.00 | |1.00 | ||
|gr1= Groups | |gr1= Groups | ||
|arg= global | |arg= global | ||
|Returns the group leader for the given unit or group. For dead units, objNull is returned. | |Returns the group leader for the given unit or group. For dead units, objNull is returned. | ||
| [[Object]] <nowiki>=</nowiki> '''leader''' unitName | | [[Object]] <nowiki>=</nowiki> '''leader''' unitName | ||
|p1 =unitName: [[Object]] or [[Group]] | |p1 =unitName: [[Object]] or [[Group]] | ||
| [[Object]] | | [[Object]] | ||
Line 24: | Line 24: | ||
|x3 =<code>_UnitLeader <nowiki>=</nowiki> [[leader]] [[player]] </code> | |x3 =<code>_UnitLeader <nowiki>=</nowiki> [[leader]] [[player]] </code> | ||
| [[formationLeader]], [[formLeader]], [[isFormationLeader]], [[selectLeader]] | | [[formationLeader]], [[formLeader]], [[isFormationLeader]], [[selectLeader]] | ||
}} | }} |
Revision as of 01:05, 18 January 2021
Description
- Description:
- Returns the group leader for the given unit or group. For dead units, objNull is returned.
- Groups:
- Groups
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
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Groups
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands