sendSimpleCommand: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
Killzone Kid (talk | contribs) (see also) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Sends a simple command to the vehicle's driver / gunner (except air vehicles). <br><br> | | Sends a simple command to the vehicle's driver / gunner (except air vehicles). See also [[vehicleMoveInfo]].<br><br> | ||
{{Important | Doesn't seem to work if AI driver is alone, needs another unit in the vehicle (could be another AI or player) that is set as [[setEffectiveCommander]]. If driver is [[effectiveCommander]] it will refuse any drive commands.}} | {{Important | Doesn't seem to work if AI driver is alone, needs another unit in the vehicle (could be another AI or player) that is set as [[setEffectiveCommander]]. If driver is [[effectiveCommander]] it will refuse any drive commands.}} | ||
{{Feature arma3 | Due to some sort of a bug when vehicle is ordered turning ("LEFT" or "RIGHT"), it locks vehicle ability to respond to any other commands properly. Always use "STOPTURNING" to cancel turning before issuing other move commands}} | {{Feature arma3 | Due to some sort of a bug when vehicle is ordered turning ("LEFT" or "RIGHT"), it locks vehicle ability to respond to any other commands properly. Always use "STOPTURNING" to cancel turning before issuing other move commands}} | ||
Line 16: | Line 16: | ||
* <tt>"CANCEL MANUAL FIRE"</tt> | * <tt>"CANCEL MANUAL FIRE"</tt> | ||
* <tt>"KEY FIRE"</tt> | * <tt>"KEY FIRE"</tt> | ||
<br>''Driver commands'' | <br>''Driver move commands'' | ||
* <tt>"FORWARD"</tt> - move forward | * <tt>"FORWARD"</tt> - move forward | ||
* <tt>"FAST"</tt> - move forward, fast | * <tt>"FAST"</tt> - move forward, fast | ||
Line 22: | Line 22: | ||
* <tt>"STOP"</tt> - stop moving forward or backward | * <tt>"STOP"</tt> - stop moving forward or backward | ||
* <tt>"BACK"</tt> - move backward | * <tt>"BACK"</tt> - move backward | ||
* <tt>"KEY UP"</tt> | * <tt>"KEY UP"</tt> | ||
* <tt>"KEY DOWN"</tt> | * <tt>"KEY DOWN"</tt> | ||
* <tt>"KEY FAST"</tt> | * <tt>"KEY FAST"</tt> | ||
* <tt>"KEY SLOW"</tt> | * <tt>"KEY SLOW"</tt> | ||
<br>''Driver turn commands'' | |||
* <tt>"LEFT"</tt> - turn left, while moving or not | |||
* <tt>"RIGHT"</tt> - turn right, while moving or not | |||
* <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) {{since|arma3|1.77|true}} | |||
|DESCRIPTION= | |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 17:10, 28 October 2019
Description
- Description:
- Sends a simple command to the vehicle's driver / gunner (except air vehicles). See also vehicleMoveInfo.
Gunner commands- "FIRE"
- "CEASE FIRE"
- "MANUAL FIRE"
- "CANCEL MANUAL FIRE"
- "KEY FIRE"
Driver move commands- "FORWARD" - move forward
- "FAST" - move forward, fast
- "SLOW" - move forward, slow
- "STOP" - stop moving forward or backward
- "BACK" - move backward
- "KEY UP"
- "KEY DOWN"
- "KEY FAST"
- "KEY SLOW"
Driver turn commands- "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) Template:since
- 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:
- vehicleMoveInfouseAISteeringComponenteffectiveCommandersetEffectiveCommanderenableAIdisableAIenableAIFeatureenableSentences
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.