selectLeader: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|Game name=" to "|Game name= |gr1= Groups |GROUP1= ") |
m (Text replacement - "|Game version=" to "|Game version= |gr1= Groups |GROUP1=") |
||
Line 9: | Line 9: | ||
|1.00|Game version= | |1.00|Game version= | ||
|gr1= Groups |GROUP1= | |||
|arg= local |Multiplayer Arguments= | |arg= local |Multiplayer Arguments= |
Revision as of 16:19, 18 September 2020
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 Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Groups
- Scripting Commands: Global Effect
- Scripting Commands OFP Elite
- Scripting Commands Armed Assault
- Scripting Commands Arma 2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters