sendSimpleCommand: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(more commands added)
(description)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sends a simple command to the vehicle's driver / gunner. |= Description
| Sends a simple command to the vehicle's driver / gunner.
<br><br>''Gunner commands''
* FIRE
* CEASE FIRE
* MANUAL FIRE
* CANCEL MANUAL FIRE
* KEY FIRE
''Driver commands''
* FORWARD
* STOP
* BACK
* FAST
* KEY FAST
* SLOW
* KEY SLOW
* LEFT
* RIGHT
* KEY UP
* KEY DOWN
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 18: Line 37:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>vehicle player sendSimpleCommand "STOP"</pre> |= Example 1
|x1= <code>[[vehicle]] [[player]] [[sendSimpleCommand]] "STOP";</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[enableSentences]] |= See also


}}
}}

Revision as of 13:01, 16 September 2014

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

Gunner commands
  • FIRE
  • CEASE FIRE
  • MANUAL FIRE
  • CANCEL MANUAL FIRE
  • KEY FIRE
Driver commands
  • FORWARD
  • STOP
  • BACK
  • FAST
  • KEY FAST
  • SLOW
  • KEY SLOW
  • LEFT
  • RIGHT
  • KEY UP
  • KEY DOWN
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 not always need to be in the vehicle to give commands.

Bottom Section