vehicleMoveInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix typo and description presentation)
m (Fix slow ↔ fast - thanks Taylor on Discord)
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.98


|1.98|Game version=
|gr1= Object Manipulation


|gr1= Object Manipulation |GROUP1=
|gr2= Unit Control


|gr2= Unit Control |GROUP2=
|descr= 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:
{{{!}} class="wikitable"
! moveInfo
! turnInfo
{{!}}- style="vertical-align: top"
{{!}} width="50%" {{!}}
* {{hl|"FORMATION"}} - vehicle is stationary
* {{hl|"FORWARD"}}  - vehicle is moving forward
* {{hl|"FAST"}} - vehicle is fast moving forward
* {{hl|"SLOW"}} - vehicle is slow moving forward
* {{hl|"STOP"}} - vehicle is stationary
* {{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).
{{!}} width="50%" {{!}}
* {{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)
{{!}}}


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


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


|p1= vehicle: [[Object]] |PARAMETER1=
|r1= [[Array]] in format [moveInfo, turnInfo], where:
 
| [[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) |RETURNVALUE=
* turnInfo: [[String]] - state of vehicle left/right turning (see description)
____________________________________________________________________________________________
 
|x1= <code>[[onEachFrame]] { [[hintSilent]] [[str]] [[vehicleMoveInfo]] [[vehicle]] [[player]] };</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[sendSimpleCommand]], [[useAISteeringComponent]], [[effectiveCommander]], [[setEffectiveCommander]], [[enableAI]], [[disableAI]], [[enableAIFeature]] |SEEALSO=
|x1= <sqf>onEachFrame { hintSilent str vehicleMoveInfo vehicle player };</sqf>


|seealso= [[sendSimpleCommand]] [[useAISteeringComponent]] [[effectiveCommander]] [[setEffectiveCommander]] [[enableAI]] [[disableAI]] [[enableAIFeature]]
}}
}}
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|VEHICLEMOVEINFO]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:17, 18 July 2022

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 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