// Set mission side (only "bandit" is supported for now)
_side = "bandit";
_pos = [15981.6,16253.2,0];
if ([_pos,DMS_StaticMinPlayerDistance] call DMS_fnc_IsPlayerNearby) exitWith {"delay"};
// Set general mission difficulty
_difficulty = "hardcore";
// Define spawn locations for AI Soldiers. These will be used for the initial spawning of AI as well as reinforcements.
// The center spawn location is added 3 times so at least 3 AI will spawn initially at the center location, and so that future reinforcements are more likely to spawn at the center.
_AISoldierSpawnLocations =
[
[16082.4,16192,0.79],
[16072.2,16191.5,0],
[16076.5,16189.9,0],
[15941,16289.9,0.33],
[16021.3,16241.4,0.31],
[16040.2,16254.3,0.17],
[16046,16253.5,0.09],
[16065.6,16250.7,0],
[16080.2,16248.5,0],
[16098.5,16242.6,0],
[16069.4,16206.7,3.6],
[16058,16207.3,4]
];
// Create AI
_AICount = 20 + (round (random 5));
_group =
[
_AISoldierSpawnLocations+[_pos,_pos,_pos], // Pass the regular spawn locations as well as the center pos 3x
_AICount,
_difficulty,
"random",
_side
] call DMS_fnc_SpawnAIGroup_MultiPos;
_staticGuns =
[
[
[15914.6,16284.2,0],
[15919.9,16271.2,0],
[16087.8,16229.4,1.4],
[16088.7,16192.4,0.15],
[16100.4,16225.1,0],
[16019.2,16216.5,2.93]
],
_group,
"assault",
_difficulty,
"bandit",
"random"
] call DMS_fnc_SpawnAIStaticMG;
// Define the classnames and locations where the crates can spawn (at least 2, since we're spawning 2 crates)
_crateClasses_and_Positions =
[
[[16018,16210,0.61],"I_CargoNet_01_ammo_F"],
[[15916,16262,0],"I_CargoNet_01_ammo_F"],
[[15975,16223.5,0.2],"I_CargoNet_01_ammo_F"],
[[16014,16242.5,4.5],"I_CargoNet_01_ammo_F"],
[[16026,16226.5,0.72],"I_CargoNet_01_ammo_F"]
];
{
deleteVehicle (nearestObject _x); // Make sure to remove any previous crates.
// Check to see if it was added correctly, otherwise delete the stuff
if !(_added) exitWith
{
diag_log format ["DMS ERROR :: Attempt to set up mission %1 with invalid parameters for DMS_fnc_AddMissionToMonitor_Static! Deleting mission objects and resetting DMS_MissionCount.",_missionName];
(format ["MISSION: (%1) :: Mission #%2 started at %3 with %4 AI units and %5 difficulty at time %6",_missionName,_num,_pos,_AICount,_difficulty,_time]) call DMS_fnc_DebugLog;