vehicleMoveInfo

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 Development Branch version1.97
  

Click on the images for descriptions

Introduced in

Game:
Arma 3 Development Branch
Version:
1.97

Description

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

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

Syntax

Syntax:
vehicleMoveInfo vehicle
Parameters:
vehicle: Object
Return Value:
Array in format [moveInfo, turnInfo], where:
  • moveInfo: String - state of vehicle forward/backward movement (see description)
  • turnInfo: String - state of vehicle left/right turning (see description)

Examples

Example 1:
onEachFrame { hintSilent str vehicleMoveInfo vehicle player };

Additional Information

Multiplayer:
-
See also:
sendSimpleCommanduseAISteeringComponenteffectiveCommandersetEffectiveCommanderenableAIdisableAIenableAIFeature

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To