setEffectiveCommander: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (updated version to 1.96)
m (arma3dev → arma3)
Line 2: Line 2:
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3dev |Game name=
| arma3 |Game name=
 
|1.96|Game version=
|1.96|Game version=
|arg= global |Multiplayer Arguments=
|arg= global |Multiplayer Arguments=
|eff= local |Multiplayer Effects=
|eff= local |Multiplayer Effects=
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 11: Line 14:
____________________________________________________________________________________________
____________________________________________________________________________________________


|vehicle '''setEffectiveCommander''' person|SYNTAX=
|vehicle [[setEffectiveCommander]] person |SYNTAX=
 
|p1 = vehicle: [[Object]]
|p1 = vehicle: [[Object]]
|p2 = person: [[Object]]
|p2 = person: [[Object]]
| [[Nothing]]|RETURNVALUE=
| [[Nothing]]|RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1 = <code>[[vehicle]] [[player]] [[setEffectiveCommander]] [[player]];</code> |EXAMPLE1=
|x1 = <code>[[vehicle]] [[player]] [[setEffectiveCommander]] [[player]];</code> |EXAMPLE1=


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



Revision as of 22:01, 29 October 2019

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:
Uncategorised

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

Bottom Section