sendSimpleCommand: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}") |
||
Line 24: | Line 24: | ||
{{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}} | ||
<br>''Gunner commands'' | <br>''Gunner commands'' | ||
* | * {{hl|"FIRE"}} | ||
* | * {{hl|"CEASE FIRE"}} | ||
* | * {{hl|"MANUAL FIRE"}} | ||
* | * {{hl|"CANCEL MANUAL FIRE"}} | ||
* | * {{hl|"KEY FIRE"}} | ||
<br>''Driver move commands'' | <br>''Driver move commands'' | ||
* | * {{hl|"FORWARD"}} - move forward | ||
* | * {{hl|"FAST"}} - move forward, fast | ||
* | * {{hl|"SLOW"}} - move forward, slow | ||
* | * {{hl|"STOP"}} - stop moving forward or backward | ||
* | * {{hl|"BACK"}} - move backward | ||
* | * {{hl|"KEY UP"}} | ||
* | * {{hl|"KEY DOWN"}} | ||
* | * {{hl|"KEY FAST"}} | ||
* | * {{hl|"KEY SLOW"}} | ||
<br>''Driver turn commands'' | <br>''Driver turn commands'' | ||
* | * {{hl|"LEFT"}} - turn left, while moving or not | ||
* | * {{hl|"RIGHT"}} - turn right, while moving or not | ||
* {{GVI|arma3|1.78|size=0.8}} | * {{GVI|arma3|1.78|size=0.8}} {{hl|"STOPTURNING"}} - cancel turning (special case, normally would be called by the engine when LEFT or RIGHT turn key is released by the player) | ||
|s1= vehicleName [[sendSimpleCommand]] command | |s1= vehicleName [[sendSimpleCommand]] command |
Revision as of 23:45, 15 November 2021
Description
- Description:
- Sends a simple command to the vehicle's driver / gunner (air vehicles ignore it). 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
- 1.78 "STOPTURNING" - cancel turning (special case, normally would be called by the engine when LEFT or RIGHT turn key is released by the player)
- Groups:
- Unit Control
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
- 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.
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Elite version 1.00
- Operation Flashpoint: Elite: New Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Unit Control