sendSimpleCommand: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "") |
Lou Montana (talk | contribs) m (Text replacement - "<br><br> {{Feature" to "{{Feature") |
||
Line 7: | Line 7: | ||
|gr1= Unit Control | |gr1= Unit Control | ||
| Sends a simple command to the vehicle's driver / gunner (air vehicles ignore it). See also [[vehicleMoveInfo]]. | | Sends a simple command to the vehicle's driver / gunner (air vehicles ignore it). See also [[vehicleMoveInfo]].{{Feature | 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 | 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}} | ||
<br>''Gunner commands'' | <br>''Gunner commands'' |
Revision as of 20:36, 9 June 2021
Description
- Description:
- Description needed
- Groups:
- Unit Control
Syntax
- Syntax:
- Syntax needed
- Parameters:
- vehicleName: Object
- command: String
- Return Value:
- Return value needed
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.