vehicleMoveInfo: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Created page with "{{Command|Comments= ____________________________________________________________________________________________ | arma3dev |Game name= |1.97|Game version= _________________...") |
Killzone Kid (talk | contribs) (typo) |
||
Line 18: | Line 18: | ||
<u>turnInfo</u> | <u>turnInfo</u> | ||
* <tt>"LEFT"</tt> - vehicle is | * <tt>"LEFT"</tt> - vehicle is turning left (use [[sendSimpleCommand | "STOPTURNING"]] to cancel) | ||
* <tt>"RIGHT"</tt> - vehicle is | * <tt>"RIGHT"</tt> - vehicle is turning right (use [[sendSimpleCommand | "STOPTURNING"]] to cancel) | ||
* <tt>"NONE"</tt> - vehicle is not | * <tt>"NONE"</tt> - vehicle is not turning | ||
* <tt>"ABS"</tt> - vehicle is not | * <tt>"ABS"</tt> - vehicle is not turning | ||
|DESCRIPTION= | |DESCRIPTION= |
Revision as of 17:12, 28 October 2019
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).
- "LEFT" - vehicle is turning left (use "STOPTURNING" to cancel)
- "RIGHT" - vehicle is turning right (use "STOPTURNING" to cancel)
- "NONE" - vehicle is not turning
- "ABS" - vehicle is not turning
- Groups:
- Uncategorised
Syntax
- Syntax:
- vehicleMoveInfo vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Array in format [moveInfo, turnInfo], where:
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
[[Category:Introduced with arma3dev version 1.97]][[ Category: arma3dev: New Scripting Commands | VEHICLEMOVEINFO]][[ Category: arma3dev: Scripting Commands | VEHICLEMOVEINFO]]