vehicleMoveInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Fix slow ↔ fast - thanks Taylor on Discord) |
||
Line 17: | Line 17: | ||
* {{hl|"FORMATION"}} - vehicle is stationary | * {{hl|"FORMATION"}} - vehicle is stationary | ||
* {{hl|"FORWARD"}} - vehicle is moving forward | * {{hl|"FORWARD"}} - vehicle is moving forward | ||
* {{hl|"FAST"}} - vehicle is | * {{hl|"FAST"}} - vehicle is fast moving forward | ||
* {{hl|"SLOW"}} - vehicle is | * {{hl|"SLOW"}} - vehicle is slow moving forward | ||
* {{hl|"STOP"}} - vehicle is stationary | * {{hl|"STOP"}} - vehicle is stationary | ||
* {{hl|"BACK"}} - vehicle is reversing | * {{hl|"BACK"}} - vehicle is reversing |
Revision as of 10:17, 18 July 2022
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 fast moving forward
- "SLOW" - vehicle 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).
- "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:
Examples
- Example 1:
Additional Information
- See also:
- sendSimpleCommand useAISteeringComponent effectiveCommander setEffectiveCommander enableAI disableAI enableAIFeature
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