selectLeader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Comments" to "|Comments=")
m (Text replacement - "|= Game name" to "|Game name=")
Line 2: Line 2:
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma |= Game name
| arma |Game name=


|1.00|= Game version
|1.00|= Game version

Revision as of 17:51, 1 September 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Select a group's leader. In MP the group has to be local to the PC executing the command. Locality of the group can be checked with local command and group ownership with groupOwner command.
Groups:
Uncategorised

Syntax

Syntax:
groupName selectLeader unitName
Parameters:
groupName: 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

See also:
formationLeaderformLeaderleaderisFormationLeader

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