setEffectiveCommander: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 11: | Line 10: | ||
|gr1= Unit Control |GROUP1= | |gr1= Unit Control |GROUP1= | ||
| 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. |DESCRIPTION= | ||
|vehicle [[setEffectiveCommander]] person |SYNTAX= | |vehicle [[setEffectiveCommander]] person |SYNTAX= | ||
Line 23: | Line 20: | ||
| [[Nothing]]|RETURNVALUE= | | [[Nothing]]|RETURNVALUE= | ||
|x1 = <code>[[vehicle]] [[player]] [[setEffectiveCommander]] [[player]];</code> |EXAMPLE1= | |x1 = <code>[[vehicle]] [[player]] [[setEffectiveCommander]] [[player]];</code> |EXAMPLE1= |
Revision as of 02:52, 17 January 2021
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
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