selectLeader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - "\{\{( *)Important( *)\|" to "{{$1Feature$2|$2important$2|")
Line 13: Line 13:
| 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.


{{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:
* ''unitName'' will be [[leader]] of ''group'', but will not be able to command them
* ''unitName'' will be [[leader]] of ''group'', but will not be able to command them
* if ''unitName'' is deleted or killed, [[leader]] of ''group'' will be [[objNull]] and will not automatically be reassigned.
* if ''unitName'' is deleted or killed, [[leader]] of ''group'' will be [[objNull]] and will not automatically be reassigned.

Revision as of 03:13, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Groups

Syntax

Syntax:
Syntax needed
Parameters:
group: Group
unitName: Object
Return Value:
Return value needed

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

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