vehicleMoveInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 9: | Line 8: | ||
|gr2= Unit Control |GROUP2= | |gr2= Unit Control |GROUP2= | ||
| Returns current vehicle move/turn info (a getter for [[sendSimpleCommand]]) in format [moveInfo, turnInfo]. Possible values: | | Returns current vehicle move/turn info (a getter for [[sendSimpleCommand]]) in format [moveInfo, turnInfo]. Possible values: | ||
Line 30: | Line 28: | ||
* <tt>"ABS"</tt> - vehicle is not turning (when keyboard pilot is used) | * <tt>"ABS"</tt> - vehicle is not turning (when keyboard pilot is used) | ||
{{!}}} |DESCRIPTION= | {{!}}} |DESCRIPTION= | ||
| [[vehicleMoveInfo]] vehicle |SYNTAX= | | [[vehicleMoveInfo]] vehicle |SYNTAX= | ||
Line 39: | Line 36: | ||
* moveInfo: [[String]] - state of vehicle forward/backward movement (see description) | * moveInfo: [[String]] - state of vehicle forward/backward movement (see description) | ||
* turnInfo: [[String]] - state of vehicle left/right turning (see description) |RETURNVALUE= | * turnInfo: [[String]] - state of vehicle left/right turning (see description) |RETURNVALUE= | ||
|x1= <code>[[onEachFrame]] { [[hintSilent]] [[str]] [[vehicleMoveInfo]] [[vehicle]] [[player]] };</code> |EXAMPLE1= | |x1= <code>[[onEachFrame]] { [[hintSilent]] [[str]] [[vehicleMoveInfo]] [[vehicle]] [[player]] };</code> |EXAMPLE1= | ||
| [[sendSimpleCommand]], [[useAISteeringComponent]], [[effectiveCommander]], [[setEffectiveCommander]], [[enableAI]], [[disableAI]], [[enableAIFeature]] |SEEALSO= | | [[sendSimpleCommand]], [[useAISteeringComponent]], [[effectiveCommander]], [[setEffectiveCommander]], [[enableAI]], [[disableAI]], [[enableAIFeature]] |SEEALSO= |
Revision as of 04:17, 17 January 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