vehicleMoveInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
No edit summary
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 1.98
|1.98


|gr1= Object Manipulation
|gr1= Object Manipulation
Line 9: Line 8:
|gr2= Unit Control
|gr2= Unit Control


| Returns current vehicle move/turn info (a getter for [[sendSimpleCommand]]) in format [moveInfo, turnInfo]. Possible values:
|descr= Returns current vehicle move/turn info (a getter for [[sendSimpleCommand]]) in format [moveInfo, turnInfo]. Possible values:


{{{!}} class{{=}}"wikitable"
{{{!}} class="wikitable"
! moveInfo !! turnInfo
! moveInfo
{{!}}-
! turnInfo
{{!}} width{{=}}"50%" {{!}}
{{!}}- style="vertical-align: top"
* <tt>"FORMATION"</tt> - vehicle is stationary
{{!}} width="50%" {{!}}
* <tt>"FORWARD"</tt> - vehicle is moving forward
* {{hl|"FORMATION"}} - vehicle is stationary
* <tt>"FAST"</tt> - vehicle is slow moving forward
* {{hl|"FORWARD"}} - vehicle is moving forward
* <tt>"SLOW"</tt> - vehicle is fast moving forward
* {{hl|"FAST"}} - vehicle is fast moving forward
* <tt>"STOP"</tt> - vehicle is stationary
* {{hl|"SLOW"}} - vehicle is slow moving forward
* <tt>"BACK"</tt> - vehicle is reversing
* {{hl|"STOP"}} - vehicle is stationary
* {{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).  
* {{hl|"BACK"}} - vehicle is reversing
{{!}} style{{=}}"vertical-align: top" {{!}}
* {{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).  
* <tt>"LEFT"</tt> - vehicle is turning left (use [[sendSimpleCommand | "STOPTURNING"]] to cancel)
{{!}} width="50%" {{!}}
* <tt>"RIGHT"</tt> - vehicle is turning right (use [[sendSimpleCommand | "STOPTURNING"]] to cancel)
* {{hl|"LEFT"}} - vehicle is turning left (use [[sendSimpleCommand | "STOPTURNING"]] to cancel)
* <tt>"NONE"</tt> - vehicle is not turning (when script command is used)
* {{hl|"RIGHT"}} - vehicle is turning right (use [[sendSimpleCommand | "STOPTURNING"]] to cancel)
* <tt>"ABS"</tt> - vehicle is not turning (when keyboard pilot is used)
* {{hl|"NONE"}} - vehicle is not turning (when script command is used)
* {{hl|"ABS"}} - vehicle is not turning (when keyboard pilot is used)
{{!}}}
{{!}}}


| [[vehicleMoveInfo]] vehicle
|s1= [[vehicleMoveInfo]] vehicle


|p1= vehicle: [[Object]]
|p1= vehicle: [[Object]]


| [[Array]] in format [moveInfo, turnInfo], where:
|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>


| [[sendSimpleCommand]], [[useAISteeringComponent]], [[effectiveCommander]], [[setEffectiveCommander]], [[enableAI]], [[disableAI]], [[enableAIFeature]]
|x1= <sqf>onEachFrame { hintSilent str vehicleMoveInfo vehicle player };</sqf>
 
|seealso= [[sendSimpleCommand]] [[useAISteeringComponent]] [[effectiveCommander]] [[setEffectiveCommander]] [[enableAI]] [[disableAI]] [[getUnitState]] [[enableAIFeature]]
}}
}}
{{GameCategory|arma3|New Scripting Commands}}
[[Category:Scripting Commands|VEHICLEMOVEINFO]]
{{GameCategory|arma3|Scripting Commands}}

Latest revision as of 13:51, 22 October 2024

Hover & click on the images for description

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:
  • moveInfo: String - state of vehicle forward/backward movement (see description)
  • turnInfo: String - state of vehicle left/right turning (see description)

Examples

Example 1:
onEachFrame { hintSilent str vehicleMoveInfo vehicle player };

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