vehicleMoveInfo: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.98 | |||
| | |gr1= Object Manipulation | ||
| | |gr2= Unit Control | ||
| | |descr= Returns current vehicle move/turn info (a getter for [[sendSimpleCommand]]) in format [moveInfo, turnInfo]. Possible values: | ||
{{{!}} class{{=}}"wikitable" | |||
! moveInfo !! turnInfo | |||
{{!}}- | |||
{{!}} width{{=}}"50%" {{!}} | |||
* <tt>"FORMATION"</tt> - vehicle is stationary | * <tt>"FORMATION"</tt> - vehicle is stationary | ||
* <tt>"FORWARD"</tt> - vehicle is moving forward | * <tt>"FORWARD"</tt> - vehicle is moving forward | ||
Line 19: | Line 20: | ||
* <tt>"STOP"</tt> - vehicle is stationary | * <tt>"STOP"</tt> - vehicle is stationary | ||
* <tt>"BACK"</tt> - vehicle is reversing | * <tt>"BACK"</tt> - vehicle is reversing | ||
* <tt>" | * {{sic|<tt>"DirectByComander"</tt>}} - 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" {{!}} | |||
* <tt>"LEFT"</tt> - vehicle is turning left (use [[sendSimpleCommand | "STOPTURNING"]] to cancel) | * <tt>"LEFT"</tt> - vehicle is turning left (use [[sendSimpleCommand | "STOPTURNING"]] to cancel) | ||
* <tt>"RIGHT"</tt> - vehicle is turning right (use [[sendSimpleCommand | "STOPTURNING"]] to cancel) | * <tt>"RIGHT"</tt> - vehicle is turning right (use [[sendSimpleCommand | "STOPTURNING"]] to cancel) | ||
* <tt>"NONE"</tt> - vehicle is not turning (when script command is used) | * <tt>"NONE"</tt> - vehicle is not turning (when script command is used) | ||
* <tt>"ABS"</tt> - vehicle is not turning (when keyboard pilot is used) | * <tt>"ABS"</tt> - vehicle is not turning (when keyboard pilot is used) | ||
{{!}}} | |||
| | |s1= [[vehicleMoveInfo]] vehicle | ||
| [[ | |p1= vehicle: [[Object]] | ||
| | |r1= [[Array]] in format [moveInfo, turnInfo], where: | ||
* 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) | * turnInfo: [[String]] - state of vehicle left/right turning (see description) | ||
| [[ | |x1= <code>[[onEachFrame]] { [[hintSilent]] [[str]] [[vehicleMoveInfo]] [[vehicle]] [[player]] };</code> | ||
|seealso= [[sendSimpleCommand]], [[useAISteeringComponent]], [[effectiveCommander]], [[setEffectiveCommander]], [[enableAI]], [[disableAI]], [[enableAIFeature]] | |||
}} | }} | ||
Revision as of 23:50, 7 August 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