diff --git a/@ExileServer/addons/a3_dms/scripts/fn_SetGroupBehavior.sqf b/@ExileServer/addons/a3_dms/scripts/fn_SetGroupBehavior.sqf index 6ee6fdf..3a7b7a2 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_SetGroupBehavior.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_SetGroupBehavior.sqf @@ -34,7 +34,7 @@ if(_difficulty == "random") then _difficulty = DMS_ai_skill_random call BIS_fnc_selectRandom; }; -_radius = missionNamespace getVariable [format["DMS_AI_WP_Radius_%1"],40]; +_radius = missionNamespace getVariable [format["DMS_AI_WP_Radius_%1",_difficulty],40]; for "_i" from 0 to 359 step 45 do { _npos = [(_pos select 0) + (sin(_i)*_radius), (_pos select 1) + (cos(_i)*_radius)]; @@ -43,4 +43,4 @@ for "_i" from 0 to 359 step 45 do { }; _wp = _group addWaypoint [_pos,_radius]; -_wp setWaypointType "CYCLE"; \ No newline at end of file +_wp setWaypointType "CYCLE";