{"name":"useAISteeringComponent","operator":null,"title":"useAISteeringComponent","type":"command","url":"https://community.bistudio.com/wiki/useAISteeringComponent","revid":352369,"updated":"2024-02-08T14:10:38Z","groups":["AI Behaviour"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.60"}],"since":{"game":"arma3","name":"Arma 3","version":"1.60"},"arma3_since":"1.60","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"description":"Enable the new [AI driving](https://forums.bistudio.com/topic/191515-ai-driving-feedback-topic/), used to test the old and new AI driving.\n\n> [!IMPORTANT]\n> setDriveOnPath does not work if the vehicle doesn't have an AI steering component or if it's disabled.","syntaxes":[{"syntax":"useAISteeringComponent enabled","since":null,"effect":null,"exec":null,"params":[{"name":"enabled","type":"Boolean","optional":false,"default":null,"description":null,"types":["Boolean"],"since":null,"text":"enabled: Boolean"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"enabled","types":["Boolean"]}},{"syntax":"vehicle useAISteeringComponent enabled","since":"arma3 2.18","effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":"the vehicle to enable/disable the feature for","types":["Object"],"since":null,"text":"vehicle: Object - the vehicle to enable/disable the feature for"},{"name":"enabled","type":"Boolean","optional":false,"default":null,"description":null,"types":["Boolean"],"since":null,"text":"enabled: Boolean"}],"returns":{"type":"","types":[],"description":null,"text":""},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"enabled","types":["Boolean"]}}],"examples":[{"text":"```sqf\nuseAISteeringComponent true;\n```","code":["useAISteeringComponent true;"]},{"text":"```sqf\nmyTank useAISteeringComponent false;\n```","code":["myTank useAISteeringComponent false;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["isUsingAISteeringComponent","isAISteeringComponentEnabled","sendSimpleCommand","enableAI","disableAI","enableAIFeature","vehicleMoveInfo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: AI Behaviour","Introduced with Arma 3 version 1.60","Scripting Commands","Scripting Commands: Global Effect"]}