{"name":"enableCopilot","operator":null,"title":"enableCopilot","type":"command","url":"https://community.bistudio.com/wiki/enableCopilot","revid":369225,"updated":"2024-09-03T10:34:55Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"tkoh","name":"Take On Helicopters","version":"1.01"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"tkoh","name":"Take On Helicopters","version":"1.01"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"description":"Enables copilot actions, toggles availability of the actions related to copilots, such as taking over controls, suspending controls, etc. This command triggers the `\"ControlsShifted\"` event handler.","syntaxes":[{"syntax":"vehicle enableCopilot enable","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":"vehicle on which to toggle copilot actions","types":["Object"],"since":null,"text":"vehicle: Object - vehicle on which to toggle copilot actions"},{"name":"enable","type":"Boolean","optional":false,"default":null,"description":"enable or disable","types":["Boolean"],"since":null,"text":"enable: Boolean - enable or disable"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"enable","types":["Boolean"]}}],"examples":[{"text":"```sqf\nif (!isCopilotEnabled myHeli) then\n{\n    myHeli enableCopilot true;\n};\n```","code":["if (!isCopilotEnabled myHeli) then\n{\n\tmyHeli enableCopilot true;\n};"]}],"multiplayer":"Execute this command globally (e.g with remoteExec) to have it synced on all clients.","problems":null,"aliases":[],"see_also":["isCopilotEnabled","currentPilot"],"notes":[],"categories":["Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Take On Helicopters version 1.01","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: New Scripting Commands","Take On Helicopters: Scripting Commands"]}