vehicleMoveInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix slow ↔ fast - thanks Taylor on Discord) |
Killzone Kid (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 22: | Line 22: | ||
* {{hl|"BACK"}} - vehicle is reversing | * {{hl|"BACK"}} - vehicle is reversing | ||
* {{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). | * {{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). | ||
* {{hl|"MOVE"}} | |||
* {{hl|"CONVOY"}} | |||
* {{hl|"SIMPLE"}} | |||
{{!}} width="50%" {{!}} | {{!}} width="50%" {{!}} | ||
* {{hl|"LEFT"}} - vehicle is turning left (use [[sendSimpleCommand | "STOPTURNING"]] to cancel) | * {{hl|"LEFT"}} - vehicle is turning left (use [[sendSimpleCommand | "STOPTURNING"]] to cancel) | ||
Line 39: | Line 42: | ||
|x1= <sqf>onEachFrame { hintSilent str vehicleMoveInfo vehicle player };</sqf> | |x1= <sqf>onEachFrame { hintSilent str vehicleMoveInfo vehicle player };</sqf> | ||
|seealso= [[sendSimpleCommand]] [[useAISteeringComponent]] [[effectiveCommander]] [[setEffectiveCommander]] [[enableAI]] [[disableAI]] [[enableAIFeature]] | |seealso= [[sendSimpleCommand]] [[useAISteeringComponent]] [[effectiveCommander]] [[setEffectiveCommander]] [[enableAI]] [[disableAI]] [[getUnitState]] [[enableAIFeature]] | ||
}} | }} |
Latest revision as of 10:33, 5 January 2025
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).
- "MOVE"
- "CONVOY"
- "SIMPLE"
- "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 getUnitState 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