{"name":"BIS_fnc_sceneSetBehaviour","operator":null,"title":"BIS fnc sceneSetBehaviour","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_sceneSetBehaviour","revid":349150,"updated":"2023-11-08T14:49:48Z","groups":["Scenes"],"status":"ok","replaced_by":[],"games":[{"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":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Enables / disables a specific set of AI units, usable for cutscenes.","syntaxes":[{"syntax":"param call BIS_fnc_sceneSetBehaviour","since":null,"effect":null,"exec":null,"params":[{"name":"String","type":null,"optional":false,"default":null,"description":"string to toggle AI (\"enableAI\",\"disableAI\")","types":["String"],"since":null,"text":"String - string to toggle AI (\"enableAI\",\"disableAI\")"},{"name":"Array","type":null,"optional":false,"default":null,"description":"AI units that should be affected by function.","types":["Array"],"since":null,"text":"Array - AI units that should be affected by function."}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[\"disableAI\", [unit1, player, unit2, unit3]] call BIS_fnc_sceneSetBehaviour;\n```","code":["[\"disableAI\", [unit1, player, unit2, unit3]] call BIS_fnc_sceneSetBehaviour;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["disableAI","enableAI","enableSimulation"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Scenes","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}