sendSimpleCommand: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{( *)Important( *)\|" to "{{$1Feature$2|$2important$2|")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 40: Line 40:
|x1= <code>[[vehicle]] [[player]] [[sendSimpleCommand]] "STOP";</code>
|x1= <code>[[vehicle]] [[player]] [[sendSimpleCommand]] "STOP";</code>


| [[vehicleMoveInfo]], [[useAISteeringComponent]], [[effectiveCommander]], [[setEffectiveCommander]], [[enableAI]], [[disableAI]], [[enableAIFeature]], [[enableSentences]]
|seealso= [[vehicleMoveInfo]], [[useAISteeringComponent]], [[effectiveCommander]], [[setEffectiveCommander]], [[enableAI]], [[disableAI]], [[enableAIFeature]], [[enableSentences]]
}}
}}



Revision as of 01:01, 17 February 2021

Hover & click on the images for description

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.