effectiveCommander: Difference between revisions
Jump to navigation
Jump to search
Austin medic (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) (explanation) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the effective commander | | 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 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | '''effectiveCommander''' vehicle |= Syntax | ||
|p1= vehicle: [[Object]] |= Parameter 1 | |p1= vehicle: [[Object]] |= Parameter 1 | ||
| [[Object]] |= Return value | | [[Object]] - commander unit |= Return value | ||
|x1= <code> | |x1= <code>_commander = [[effectiveCommander]] tank; | ||
</code>|= EXAMPLE1 | </code>|= EXAMPLE1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= See also | | [[commander]], [[driver]], [[gunner]] |= See also | ||
}} | }} |
Revision as of 23:04, 1 July 2015
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
Examples
- Example 1:
_commander = effectiveCommander tank;
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