sendSimpleCommand: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{since" to "{{Since") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Unit Control |GROUP1= | |gr1= Unit Control |GROUP1= | ||
| Sends a simple command to the vehicle's driver / gunner (air vehicles ignore it). See also [[vehicleMoveInfo]].<br><br> | | Sends a simple command to the vehicle's driver / gunner (air vehicles ignore it). See also [[vehicleMoveInfo]].<br><br> | ||
Line 33: | Line 31: | ||
* <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}} | * <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= | ||
| vehicleName '''sendSimpleCommand''' command |SYNTAX= | | vehicleName '''sendSimpleCommand''' command |SYNTAX= | ||
Line 41: | Line 38: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[[vehicle]] [[player]] [[sendSimpleCommand]] "STOP";</code> |EXAMPLE1= | |x1= <code>[[vehicle]] [[player]] [[sendSimpleCommand]] "STOP";</code> |EXAMPLE1= | ||
| [[vehicleMoveInfo]], [[useAISteeringComponent]], [[effectiveCommander]], [[setEffectiveCommander]], [[enableAI]], [[disableAI]], [[enableAIFeature]], [[enableSentences]] |SEEALSO= | | [[vehicleMoveInfo]], [[useAISteeringComponent]], [[effectiveCommander]], [[setEffectiveCommander]], [[enableAI]], [[disableAI]], [[enableAIFeature]], [[enableSentences]] |SEEALSO= |
Revision as of 02:57, 17 January 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
- "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:
- 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
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Unit Control
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands