{"name":"BIS_fnc_EXP_camp_dynamicAISkill","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","games":{"arma3":"1.62"},"since":"arma3 1.62","arma3_since":"1.62","locality":{"server_exec":true},"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","params":[{"name":"mode","type":"Boolean","optional":true,"default":"true","description":"true to enable, false to disable","type_expr":"Boolean","text":"mode: Boolean - (Optional, default true) true to enable, false to disable"},{"name":"affectedSides","type":"Array","description":"array of affected sides and their skill sets. For details see BIS_fnc_EXP_camp_setSkill","type_expr":"Array"}],"returns":{"type":"Nothing","type_expr":"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;"]}],"see_also":["Arma 3: AI Skill","setSkill","skillFinal","BIS_fnc_EXP_camp_setSkill"]}