effectiveCommander: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * \|p1=" to " |s1= $1 |p1=")
m (Text replacement - "<sqf>([^ ]+) <\/sqf>" to "<sqf>$1</sqf>")
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma1
|game1= arma1
|1.00
|version1= 1.00


|game2= arma2
|game2= arma2
Line 18: Line 18:
|gr1= Unit Control
|gr1= Unit Control


| Returns the effective commander of the vehicle. Effective commander is the player whom driver AI will listen to. So if in a tank there is a gunner and a commander and AI driver, if the [[effectiveCommander]] is gunner, then gunner pressing WASD will give AI orders to move. If gunner jumps out and then enters tank again, the [[effectiveCommander]] role most likely has changed to commander that remained in tank. Also the assignment seems to work on first come first served basis.
|descr= Returns the effective commander of the vehicle. Effective commander is the player whom driver AI will listen to. So if in a tank there is a gunner and a commander and AI driver, if the [[effectiveCommander]] is gunner, then gunner pressing WASD will give AI orders to move. If gunner jumps out and then enters tank again, the [[effectiveCommander]] role most likely has changed to commander that remained in tank. Also the assignment seems to work on first come first served basis.


|s1= '''effectiveCommander''' vehicle
|s1= [[effectiveCommander]] vehicle


|p1= vehicle: [[Object]]
|p1= vehicle: [[Object]]
Line 26: Line 26:
|r1= [[Object]] - commander unit
|r1= [[Object]] - commander unit


|x1= <code>_commander = [[effectiveCommander]] tank;
|x1= <sqf>_commander = effectiveCommander tank;</sqf>
</code>


|seealso= [[setEffectiveCommander]], [[commander]], [[driver]], [[gunner]], [[currentPilot]], [[vehicleMoveInfo]]
|seealso= [[setEffectiveCommander]] [[commander]] [[driver]] [[gunner]] [[currentPilot]] [[vehicleMoveInfo]]
}}
}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 12:04, 13 May 2022

Hover & click on the images for description

Description

Description:
Returns the effective commander of the vehicle. Effective commander is the player whom driver AI will listen to. So if in a tank there is a gunner and a commander and AI driver, if the effectiveCommander is gunner, then gunner pressing WASD will give AI orders to move. If gunner jumps out and then enters tank again, the effectiveCommander role most likely has changed to commander that remained in tank. Also the assignment seems to work on first come first served basis.
Groups:
Unit Control

Syntax

Syntax:
effectiveCommander vehicle
Parameters:
vehicle: Object
Return Value:
Object - commander unit

Examples

Example 1:
_commander = effectiveCommander tank;

Additional Information

See also:
setEffectiveCommander commander driver gunner currentPilot vehicleMoveInfo

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