selectLeader: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite *(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 11: | Line 10: | ||
|eff= global |Multiplayer Effects= | |eff= global |Multiplayer Effects= | ||
| Select the group's leader. Group locality can be checked with [[local]] command and group ownership with [[groupOwner]] command. | | Select the group's leader. Group locality can be checked with [[local]] command and group ownership with [[groupOwner]] command. | ||
Line 20: | Line 18: | ||
}} |DESCRIPTION= | }} |DESCRIPTION= | ||
| group [[selectLeader]] unitName |SYNTAX= | | group [[selectLeader]] unitName |SYNTAX= | ||
Line 29: | Line 26: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[[group]] [[player]] [[selectLeader]] [[player]];</code> |EXAMPLE1= | |x1= <code>[[group]] [[player]] [[selectLeader]] [[player]];</code> |EXAMPLE1= | ||
|x2= Make unit a leader from server:<code><nowiki>[</nowiki>[[group]] _unit, _unit] [[remoteExec]] ["selectLeader", [[groupOwner]] [[group]] _unit];</code> |EXAMPLE2= | |x2= Make unit a leader from server:<code><nowiki>[</nowiki>[[group]] _unit, _unit] [[remoteExec]] ["selectLeader", [[groupOwner]] [[group]] _unit];</code> |EXAMPLE2= | ||
| [[commandFollow]], [[doFollow]], [[formationLeader]], [[formLeader]], [[isFormationLeader]], [[leader]], [[setLeader]] |SEEALSO= | | [[commandFollow]], [[doFollow]], [[formationLeader]], [[formLeader]], [[isFormationLeader]], [[leader]], [[setLeader]] |SEEALSO= |
Revision as of 02:16, 17 January 2021
Description
- Description:
- Select the group's leader. Group locality can be checked with local command and group ownership with groupOwner command.
- Groups:
- Groups
Syntax
- Syntax:
- group selectLeader unitName
- Parameters:
- group: Group
- unitName: Object
- Return Value:
- Nothing
Examples
- Example 1:
group player selectLeader player;
- Example 2:
- Make unit a leader from server:
[group _unit, _unit] remoteExec ["selectLeader", groupOwner group _unit];
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
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Groups
- Scripting Commands: Global Effect
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands