{"name":"enableAIFeature","operator":null,"title":"enableAIFeature","type":"command","url":"https://community.bistudio.com/wiki/enableAIFeature","revid":369972,"updated":"2024-10-22T12:51:41Z","groups":["AI Behaviour"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.05"},{"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":"arma2","name":"Arma 2","version":"1.05"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Enables/disables given AI feature.","syntaxes":[{"syntax":"feature enableAIFeature enable","since":null,"effect":null,"exec":null,"params":[{"name":"feature","type":"String","optional":false,"default":null,"description":"can be:\n- `\"AwareFormationSoft\"`\n- `\"CombatFormationSoft\"`","types":["String"],"since":null,"text":"feature: String - can be:\n- `\"AwareFormationSoft\"`\n- `\"CombatFormationSoft\"`"},{"name":"enable","type":"Boolean","optional":false,"default":null,"description":"true to enable, false to disable","types":["Boolean"],"since":null,"text":"enable: Boolean - true to enable, false to disable"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"feature","types":["String"]},"right":{"text":"enable","types":["Boolean"]}},{"syntax":"unit enableAIFeature [feature, enable]","since":"arma3 1.96","effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"unit to test AI feature for","types":["Object"],"since":null,"text":"unit: Object - unit to test AI feature for"},{"name":"feature","type":"String","optional":false,"default":null,"description":"see disableAI / enableAI for possible values","types":["String"],"since":null,"text":"feature: String - see disableAI / enableAI for possible values"},{"name":"enable","type":"Boolean","optional":false,"default":null,"description":"true to enable, false to disable","types":["Boolean"],"since":null,"text":"enable: Boolean - true to enable, false to disable"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"[feature, enable]","types":["Array"]}}],"examples":[{"text":"```sqf\n\"AwareFormationSoft\" enableAIFeature true;\n```","code":["\"AwareFormationSoft\" enableAIFeature true;"]},{"text":"```sqf\nbob enableAIFeature [\"AUTOTARGET\", false];\n```","code":["bob enableAIFeature [\"AUTOTARGET\", false];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["checkAIFeature","enableAI","disableAI","getUnitState","disableRemoteSensors","vehicleMoveInfo"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: AI Behaviour","Introduced with Arma 2 version 1.05","Scripting Commands","Take On Helicopters: Scripting Commands"]}