{"name":"BIS_fnc_EXP_camp_dynamicAISkill","operator":null,"title":"BIS fnc EXP camp dynamicAISkill","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_EXP_camp_dynamicAISkill","revid":364260,"updated":"2024-05-06T09:38:26Z","groups":["Campaign"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.62"}],"since":{"game":"arma3","name":"Arma 3","version":"1.62"},"arma3_since":"1.62","branch":null,"locality":{"argument":null,"effect":null,"server_exec":true},"exec":null,"description":"Changes AI skill based on player count, responding to player connected / player disconnected events. This function does exactly the same as BIS_fnc_EXP_camp_setSkill execept that it automatically executes when a player joins or disconnects.","syntaxes":[{"syntax":"[mode, affectedSides] call BIS_fnc_EXP_camp_dynamicAISkill","since":null,"effect":null,"exec":null,"params":[{"name":"mode","type":"Boolean","optional":true,"default":"true","description":"true to enable, false to disable","types":["Boolean"],"since":null,"text":"mode: Boolean - (Optional, default true) true to enable, false to disable"},{"name":"affectedSides","type":"Array","optional":false,"default":null,"description":"array of affected sides and their skill sets. For details see BIS_fnc_EXP_camp_setSkill","types":["Array"],"since":null,"text":"affectedSides: Array - array of affected sides and their skill sets. For details see BIS_fnc_EXP_camp_setSkill"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[\n    true,\n    [\n        [WEST, 0.1, 0.2, 0.7, 0.6],\n        [EAST, 0.1, 0.2, 0.7, 0.6]\n    ]\n] call BIS_fnc_EXP_camp_dynamicAISkill;\n```","code":["[\n\ttrue,\n\t[\n\t\t[WEST, 0.1, 0.2, 0.7, 0.6],\n\t\t[EAST, 0.1, 0.2, 0.7, 0.6]\n\t]\n] call BIS_fnc_EXP_camp_dynamicAISkill;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: AI Skill","setSkill","skillFinal","BIS_fnc_EXP_camp_setSkill"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Campaign","Functions","Functions: Server Execution","Introduced with Arma 3 version 1.62"],"docblock":null,"filled_from_docblock":[]}