effectiveCommander: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(explanation)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the effective commander (who really commands) of the vehicle. |= 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 [[effectiveCommender]] 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. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Object]] <nowiki>=</nowiki> '''effectiveCommander''' vehicle |= Syntax
| '''effectiveCommander''' vehicle |= Syntax


|p1= vehicle: [[Object]] |= Parameter 1
|p1= vehicle: [[Object]] |= Parameter 1


| [[Object]] |= Return value
| [[Object]] - commander unit |= Return value




|x1= <code>VehCommander = effectiveCommander myCar;
|x1= <code>_commander = [[effectiveCommander]] tank;
</code>|= EXAMPLE1  
</code>|= EXAMPLE1  
____________________________________________________________________________________________
____________________________________________________________________________________________


|  |= See also
| [[commander]], [[driver]], [[gunner]] |= See also


}}
}}

Revision as of 00:04, 2 July 2015

-wrong parameter ("Arma") defined!-1.00
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 effectiveCommender 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.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
_commander = effectiveCommander tank;

Additional Information

See also:
commanderdrivergunner

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