vehicleMoveInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([a-zA-Z0-9 _"']+)<\/tt>" to "{{hl|$1}}") |
||
Line 14: | Line 14: | ||
{{!}}- | {{!}}- | ||
{{!}} width{{=}}"50%" {{!}} | {{!}} width{{=}}"50%" {{!}} | ||
* | * {{hl|"FORMATION"}} - vehicle is stationary | ||
* | * {{hl|"FORWARD"}} - vehicle is moving forward | ||
* | * {{hl|"FAST"}} - vehicle is slow moving forward | ||
* | * {{hl|"SLOW"}} - vehicle is fast moving forward | ||
* | * {{hl|"STOP"}} - vehicle is stationary | ||
* | * {{hl|"BACK"}} - vehicle is reversing | ||
* {{sic| | * {{sic|{{hl|"DirectByComander"}}}} - keyboard pilot is used, i.e. player is in the vehicle and is the [[effectiveCommander]] pressing any driving key (WASD or arrows). | ||
{{!}} style{{=}}"vertical-align: top" {{!}} | {{!}} style{{=}}"vertical-align: top" {{!}} | ||
* | * {{hl|"LEFT"}} - vehicle is turning left (use [[sendSimpleCommand | "STOPTURNING"]] to cancel) | ||
* | * {{hl|"RIGHT"}} - vehicle is turning right (use [[sendSimpleCommand | "STOPTURNING"]] to cancel) | ||
* | * {{hl|"NONE"}} - vehicle is not turning (when script command is used) | ||
* | * {{hl|"ABS"}} - vehicle is not turning (when keyboard pilot is used) | ||
{{!}}} | {{!}}} | ||
Revision as of 19:32, 15 November 2021
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:
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