{"name":"sendSimpleCommand","operator":null,"title":"sendSimpleCommand","type":"command","url":"https://community.bistudio.com/wiki/sendSimpleCommand","revid":336305,"updated":"2022-12-21T11:10:14Z","groups":["Unit Control"],"status":"ok","replaced_by":[],"games":[{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Sends a simple command to the vehicle's driver / gunner (air vehicles ignore it). See also vehicleMoveInfo.\n\n> [!IMPORTANT]\n> 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.\n\n> [!NOTE]\n> **Arma 3:** Due to some sort of a bug when vehicle is ordered turning (\"LEFT\" or \"RIGHT\"), it locks the vehicle ability to respond to any other commands properly. Always use \"STOPTURNING\" to cancel turning before issuing other move commands\n\n| Gunner commands | Driver Move commands | Driver Turn commands |\n|---|---|---|\n| - `\"FIRE\"`<br>- `\"CEASE FIRE\"`<br>- `\"MANUAL FIRE\"`<br>- `\"CANCEL MANUAL FIRE\"`<br>- `\"KEY FIRE\"` | - `\"FORWARD\"` - move forward<br>- `\"FAST\"` - move forward, fast<br>- `\"SLOW\"` - move forward, slow<br>- `\"STOP\"` - stop moving forward or backward<br>- `\"BACK\"` - move backward<br>- `\"KEY UP\"`<br>- `\"KEY DOWN\"`<br>- `\"KEY FAST\"`<br>- `\"KEY SLOW\"` | - `\"LEFT\"` - turn left, while moving or not<br>- `\"RIGHT\"` - turn right, while moving or not<br>- Arma 3 v1.78 `\"STOPTURNING\"` cancel turning (special case, normally would be called by the engine when LEFT or RIGHT turn key is released by the player) |","syntaxes":[{"syntax":"vehicleName sendSimpleCommand command","since":null,"effect":null,"exec":null,"params":[{"name":"vehicleName","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicleName: Object"},{"name":"command","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"command: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicleName","types":["Object"]},"right":{"text":"command","types":["String"]}}],"examples":[{"text":"```sqf\nvehicle player sendSimpleCommand \"STOP\";\n```","code":["vehicle player sendSimpleCommand \"STOP\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["vehicleMoveInfo","useAISteeringComponent","effectiveCommander","setEffectiveCommander","enableAI","disableAI","enableAIFeature","enableSentences"],"notes":[{"user":"Ceeeb","date":"2007-04-16T04:52:00Z","text":"Valid commands include: \"FORWARD\", \"SLOW\", \"FAST\" \"BACK\", \"LEFT\", \"RIGHT\", \"STOP\", \"FIRE\", \"CEASE FIRE\", \"MANUAL FIRE\", \"CANCEL MANUAL FIRE\". There may be more.\n\nOnly vehicles crewed by a player can use sendSimpleCommand."},{"user":"Killzone_Kid","date":"2014-01-26T15:58:00Z","text":"Other commands that work: \"KEY FIRE\", \"KEY FAST\", \"KEY SLOW\", \"KEY DOWN\", \"KEY UP\". These will simulate key presses.\n\nIn Arma 3 player doesn't always need to be in the vehicle to give commands."}],"categories":[]}