setEffectiveCommander: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.96|Game version=
|1.96


|arg= global |Multiplayer Arguments=
|arg= global


|eff= local |Multiplayer Effects=
|eff= local


|gr1= Unit Control |GROUP1=
|gr1= Unit Control


| Sets [[effectiveCommander]] of the given vehicle. Effective commander is the person who commands the vehicle, i.e. gives commands to the driver. Every time a person gets in or out of a vehicle, effective commander eligibility is recalculated by the engine based on the current [[crew]]. Use this command to force desired effective commander. In multiplayer, execute globally. |DESCRIPTION=
| Sets [[effectiveCommander]] of the given vehicle. Effective commander is the person who commands the vehicle, i.e. gives commands to the driver. Every time a person gets in or out of a vehicle, effective commander eligibility is recalculated by the engine based on the current [[crew]]. Use this command to force desired effective commander. In multiplayer, execute globally.


|vehicle [[setEffectiveCommander]] person |SYNTAX=
|vehicle [[setEffectiveCommander]] person


|p1 = vehicle: [[Object]]
|p1 = vehicle: [[Object]]
Line 19: Line 19:
|p2 = person: [[Object]]
|p2 = person: [[Object]]


| [[Nothing]]|RETURNVALUE=
| [[Nothing]]


|x1 = <code>[[vehicle]] [[player]] [[setEffectiveCommander]] [[player]];</code> |EXAMPLE1=
|x1 = <code>[[vehicle]] [[player]] [[setEffectiveCommander]] [[player]];</code>


| [[effectiveCommander]], [[commander]], [[vehicleMoveInfo]] |SEEALSO=
| [[effectiveCommander]], [[commander]], [[vehicleMoveInfo]]
}}
}}



Revision as of 12:12, 18 January 2021

Hover & click on the images for description

Description

Description:
Sets effectiveCommander of the given vehicle. Effective commander is the person who commands the vehicle, i.e. gives commands to the driver. Every time a person gets in or out of a vehicle, effective commander eligibility is recalculated by the engine based on the current crew. Use this command to force desired effective commander. In multiplayer, execute globally.
Groups:
Unit Control

Syntax

Syntax:
vehicle setEffectiveCommander person
Parameters:
vehicle: Object
person: Object
Return Value:
Nothing

Examples

Example 1:
vehicle player setEffectiveCommander player;

Additional Information

See also:
effectiveCommandercommandervehicleMoveInfo

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