selectLeader: Difference between revisions

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


| 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. |DESCRIPTION=
| Select the 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. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| groupName '''selectLeader''' unitName |SYNTAX=
| group [[selectLeader]] unitName |SYNTAX=
 
|p1= group: [[Group]] |PARAMETER1=


|p1= groupName: [[Group]] |PARAMETER1=
|p2= unitName: [[Object]] |PARAMETER2=
|p2= unitName: [[Object]] |PARAMETER2=


Line 23: Line 24:
   
   
|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> |EXAMPLE1=
 
|x2= Make unit a leader from server:<code><nowiki>[</nowiki>[[group]] _unit, _unit] [[remoteExec]] ["selectLeader", [[groupOwner]] [[group]] _unit];</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[formationLeader]], [[formLeader]], [[leader]], [[isFormationLeader]] |SEEALSO=
| [[formationLeader]], [[formLeader]], [[leader]], [[isFormationLeader]] |SEEALSO=
}}
}}


Line 35: Line 36:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SELECTLEADER]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP Elite |SELECTLEADER]]
[[Category:Scripting Commands OFP Elite |{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|SELECTLEADER]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]]

Revision as of 14:56, 3 September 2019

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

Description

Description:
Select the 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:
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

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