moveInAny: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
Line 26: Line 26:
|r1= [[Boolean]] - [[true]] on success, [[false]] on failure
|r1= [[Boolean]] - [[true]] on success, [[false]] on failure


|x1= <code>player [[moveInAny]] tank;</code>
|x1= <code>player moveInAny tank;</code>


|seealso= [[moveInDriver]] [[moveInCommander]] [[moveInGunner]] [[moveInTurret]] [[moveInCargo]]
|seealso= [[moveInDriver]] [[moveInCommander]] [[moveInGunner]] [[moveInTurret]] [[moveInCargo]]
}}
}}

Revision as of 11:12, 12 May 2022

Hover & click on the images for description

Description

Description:
Moves unit to the first available seat in a vehicle.
See AI Group Vehicle Management for more information.

The order of priorities is the same order used in squad command when you order subordinates to get in vehicle to any position and is the same order used in Zeus when you drag units to a vehicle.

Seat assignment seems to use the following priority logic:
driver (moveInDriver) → commander (moveInCommander) → gunner (moveInGunner) → turrets (moveInTurret) → cargo (moveInCargo).

This command will move player into the locked vehicle or seat just as well.
Groups:
Unit Control

Syntax

Syntax:
unit moveInAny vehicle
Parameters:
unit: Object
vehicle: Object
Return Value:
Boolean - true on success, false on failure

Examples

Example 1:
player moveInAny tank;

Additional Information

See also:
moveInDriver moveInCommander moveInGunner moveInTurret moveInCargo

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