sendSimpleCommand: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(stopturning)
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sends a simple command to the vehicle's driver / gunner.
| Sends a simple command to the vehicle's driver / gunner. The player executing command should be in the vehicle.
<br><br>''Gunner commands''
<br><br>''Gunner commands''
* FIRE
* <tt>"FIRE"</tt>
* CEASE FIRE
* <tt>"CEASE FIRE"</tt>
* MANUAL FIRE
* <tt>"MANUAL FIRE"</tt>
* CANCEL MANUAL FIRE
* <tt>"CANCEL MANUAL FIRE"</tt>
* KEY FIRE
* <tt>"KEY FIRE"</tt>
''Driver commands''
<br>''Driver commands''
* FORWARD
* <tt>"FORWARD"</tt> - move forward
* STOP
* <tt>"STOP"</tt> - stop moving forward or backward
* BACK
* <tt>"BACK"</tt> - move backward
* FAST
* <tt>"FAST"</tt> - move forward, fast
* KEY FAST
* <tt>"SLOW"</tt> - move forward, slow
* SLOW
* <tt>"LEFT"</tt> - turn left, while moving or not
* KEY SLOW
* <tt>"RIGHT"</tt> - turn right, while moving or not
* LEFT
* <tt>"STOPTURNING"</tt> - cancel turning  (special case, normally would be called by the engine when LEFT or RIGHT turn key is released by the player) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(''since Arma 3 v1.77'')
* RIGHT
* <tt>"KEY UP"</tt>
* KEY UP
* <tt>"KEY DOWN"</tt>
* KEY DOWN
* <tt>"KEY FAST"</tt>
* STOPTURNING &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(since Arma 3 v1.77)
* <tt>"KEY SLOW"</tt>
|= Description
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 00:05, 17 August 2017

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Sends a simple command to the vehicle's driver / gunner. The player executing command should be in the vehicle.

Gunner commands
  • "FIRE"
  • "CEASE FIRE"
  • "MANUAL FIRE"
  • "CANCEL MANUAL FIRE"
  • "KEY FIRE"

Driver commands
  • "FORWARD" - move forward
  • "STOP" - stop moving forward or backward
  • "BACK" - move backward
  • "FAST" - move forward, fast
  • "SLOW" - move forward, slow
  • "LEFT" - turn left, while moving or not
  • "RIGHT" - turn right, while moving or not
  • "STOPTURNING" - cancel turning (special case, normally would be called by the engine when LEFT or RIGHT turn key is released by the player)       (since Arma 3 v1.77)
  • "KEY UP"
  • "KEY DOWN"
  • "KEY FAST"
  • "KEY SLOW"
Groups:
Uncategorised

Syntax

Syntax:
vehicleName sendSimpleCommand command
Parameters:
vehicleName: Object
command: String
Return Value:
Nothing

Examples

Example 1:
vehicle player sendSimpleCommand "STOP";

Additional Information

See also:
enableSentences

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

Notes

Ceeeb
Valid commands include: "FORWARD", "SLOW", "FAST" "BACK", "LEFT", "RIGHT", "STOP", "FIRE", "CEASE FIRE", "MANUAL FIRE", "CANCEL MANUAL FIRE". There may be more.

Only vehicles crewed by a player can use sendSimpleCommand.
Killzone_Kid
Other commands that work: "KEY FIRE", "KEY FAST", "KEY SLOW", "KEY DOWN", "KEY UP". These will simulate key presses.

In Arma 3 player doesn't always need to be in the vehicle to give commands.

Bottom Section