setEffectiveCommander: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma3 | | arma3 | ||
|1.96 | |1.96 | ||
|arg= global | |arg= global | ||
|eff= local | |eff= local | ||
|gr1= Unit Control | |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. | | 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 | |vehicle [[setEffectiveCommander]] person | ||
|p1 = vehicle: [[Object]] | |p1 = vehicle: [[Object]] | ||
Line 19: | Line 19: | ||
|p2 = person: [[Object]] | |p2 = person: [[Object]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1 = <code>[[vehicle]] [[player]] [[setEffectiveCommander]] [[player]];</code> | |x1 = <code>[[vehicle]] [[player]] [[setEffectiveCommander]] [[player]];</code> | ||
| [[effectiveCommander]], [[commander]], [[vehicleMoveInfo]] | | [[effectiveCommander]], [[commander]], [[vehicleMoveInfo]] | ||
}} | }} | ||
Revision as of 11:12, 18 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