vehicleMoveInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \|p([0-9]{1,2})=([^ ]+) + \| *(\[\[Arr.+) * " to " |p$1=$2 |r1=$3 ")
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3")
Line 9: Line 9:
|gr2= Unit Control
|gr2= Unit Control


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


{{{!}} class{{=}}"wikitable"
{{{!}} class{{=}}"wikitable"

Revision as of 22:28, 13 June 2021

Hover & click on the images for description

Description

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 is moving forward
  • "FAST" - vehicle is slow moving forward
  • "SLOW" - vehicle is fast 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).
  • "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)
Groups:
Object ManipulationUnit Control

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

See also:
sendSimpleCommanduseAISteeringComponenteffectiveCommandersetEffectiveCommanderenableAIdisableAIenableAIFeature

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