Arma 3 Scripting

vehicleMoveInfo

  • Arma 3 v1.98

Command · also in Unit Control · Markdown · JSON · original wiki page

Description

Returns current vehicle move/turn info (a getter for sendSimpleCommand) in format [moveInfo, turnInfo]. Possible values:

moveInfo turnInfo
- "FORMATION" - vehicle is stationary
- "FORWARD" - vehicle (also steerable parachute) is moving forward
- "FAST" - vehicle (also steerable parachute) is fast moving forward
- "SLOW" - vehicle (also steerable parachute) is slow moving forward
- "STOP" - vehicle is stationary
- "BACK" - vehicle is reversing
- "DirectByComander" [sic] - keyboard pilot is used, i.e. player is in the vehicle and is the effectiveCommander pressing any driving key (WASD or arrows).
- "MOVE"
- "CONVOY"
- "SIMPLE"
- "LEFT" - vehicle (also steerable parachute) is turning left (use "STOPTURNING" to cancel)
- "RIGHT" - vehicle (also steerable parachute) is turning right (use "STOPTURNING" to cancel)
- "NONE" - vehicle (also steerable parachute) is not turning (when script command is used)
- "ABS" - vehicle is not turning (when keyboard pilot is used)

Syntax

vehicleMoveInfo vehicle

Parameters:

Returns: Array with [moveInfo, turnInfo]

Examples

Example 1

onEachFrame { hintSilent str vehicleMoveInfo vehicle player };

See also

sendSimpleCommand · useAISteeringComponent · effectiveCommander · setEffectiveCommander · enableAI · disableAI · getUnitState · getUnitMovesInfo · enableAIFeature