selectLeader: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=") |
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3") |
||
Line 25: | Line 25: | ||
|eff= global | |eff= global | ||
| Select the group's leader. Group locality can be checked with [[local]] command and group ownership with [[groupOwner]] command. | |descr= Select the group's leader. Group locality can be checked with [[local]] command and group ownership with [[groupOwner]] command. | ||
{{Feature | important | An invalid combination can be provided to this command, e.g ''unitName'' '''not''' being part of ''group''. In that case: | {{Feature | important | An invalid combination can be provided to this command, e.g ''unitName'' '''not''' being part of ''group''. In that case: |
Revision as of 21:15, 13 June 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