DayZ Mission System

Yes, it is possible. No, I won't add it. It shouldn't be hard to implement yourself if you look at the code from DZAI or Sarge.
 
_aispawn = [[Coords], radius of waypoints (in meters), number of waypoints, number of ai units, bandit(0) OR army(1)];

You can add more lines like you said you've done. Should work fine. Or you can increase second to last number (squad size).

Code:
_aispawn = [_coords,80,12,20,1] execVM "\z\addons\dayz_server\missions\add_unit_server.sqf";//AI Guards
sleep 5;
_aispawn = [_coords,80,12,20,1] execVM "\z\addons\dayz_server\missions\add_unit_server.sqf";//AI Guards
sleep 5;
_aispawn = [_coords,40,12,20,1] execVM "\z\addons\dayz_server\missions\add_unit_server.sqf";//AI Guards
sleep 5;
_aispawn = [_coords,40,12,20,1] execVM "\z\addons\dayz_server\missions\add_unit_server.sqf";//AI Guards
sleep 5;

i change to 20 and it seem like bot spawn only 5 :D
 
Are you getting errors in your RPT? The npc's may be set to spawn with guns that are not allowed on your server which means they won't spawn at all. Check their loadouts in the add_unit_server.sqf.
 
Are you getting errors in your RPT? The npc's may be set to spawn with guns that are not allowed on your server which means they won't spawn at all. Check their loadouts in the add_unit_server.sqf.

default dayz vanilla loadout :D

Code:
14:58:17 Wrong text element 'null'
14:58:17 "AIUNIT: Spawn initiated: Centre:[3257.23,9918.75] | Radius in m:80 | Waypoint number:4 | WeaponLevel:1"
14:58:18 No speaker given for Alexander Muller
14:58:18 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3258.23,9919.75,0]. Result:R 1-1-B:1 | Loadout:["AKS_74_Kobra","30Rnd_545x39_AK","MakarovSD","8Rnd_9x18_Makarov"] / Num:6"
14:58:18 No speaker given for Jonas Schwarz
14:58:18 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3259.23,9920.75,0]. Result:R 1-1-B:2 | Loadout:["BAF_L85A2_RIS_HOLO","30Rnd_556x45_Stanag","glock17_EP1","17Rnd_9x19_glock17"] / Num:0"
14:58:18 No speaker given for Hans Menger
14:58:18 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3260.23,9921.75,0]. Result:R 1-1-B:3 | Loadout:["BAF_L85A2_RIS_HOLO","30Rnd_556x45_Stanag","glock17_EP1","17Rnd_9x19_glock17"] / Num:0"
14:58:18 Wrong text element 'null'
14:58:18 Wrong text element 'null'
14:58:18 Wrong text element 'null'
14:58:18 Wrong text element 'null'
14:58:18 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3261.23,9922.75,0]. Result:R 1-1-B:4 | Loadout:["SVD_CAMO","10Rnd_762x54_SVD","MakarovSD","8Rnd_9x18_Makarov"] / Num:0"
14:58:18 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3262.23,9923.75,0]. Result:R 1-1-B:5 | Loadout:["M24","5Rnd_762x51_M24","MakarovSD","8Rnd_9x18_Makarov"] / Num:1"
14:58:18 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3263.23,9924.75,0]. Result:R 1-1-B:6 | Loadout:["SVD","10Rnd_762x54_SVD","MakarovSD","8Rnd_9x18_Makarov"] / Num:3"
14:58:18 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3264.23,9925.75,0]. Result:R 1-1-B:7 | Loadout:["SVD","10Rnd_762x54_SVD","MakarovSD","8Rnd_9x18_Makarov"] / Num:3"
14:58:18 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3265.23,9926.75,0]. Result:R 1-1-B:8 | Loadout:["M24_des_EP1","5Rnd_762x51_M24","MakarovSD","8Rnd_9x18_Makarov"] / Num:2"
14:58:19 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3266.23,9927.75,0]. Result:R 1-1-B:9 | Loadout:["SVD_CAMO","10Rnd_762x54_SVD","MakarovSD","8Rnd_9x18_Makarov"] / Num:0"
14:58:19 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3267.23,9928.75,0]. Result:R 1-1-B:10 | Loadout:["M24","5Rnd_762x51_M24","MakarovSD","8Rnd_9x18_Makarov"] / Num:1"
14:58:19 "AIUNIT: Last Waypoint [R 1-1-A,4] at [3317.23,9978.75,80]"
14:58:19 Wrong text element 'null'
14:58:19 Wrong text element 'null'
14:58:19 Wrong text element 'null'
14:58:19 Wrong text element 'null'
14:58:20 Wrong text element 'null'
14:58:20 Wrong text element 'null'
14:58:20 Wrong text element 'null'
14:58:20 Wrong text element 'null'
14:58:21 Wrong text element 'null'
14:58:21 Wrong text element 'null'
14:58:21 Wrong text element 'null'
14:58:21 Wrong text element 'null'
14:58:22 Wrong text element 'null'
14:58:22 Wrong text element 'null'
14:58:22 Wrong text element 'null'
14:58:22 Wrong text element 'null'
14:58:23 "AIUNIT: Spawn initiated: Centre:[3257.23,9918.75] | Radius in m:80 | Waypoint number:4 | WeaponLevel:1"
14:58:23 No speaker given for Kristian Becker
14:58:23 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3258.23,9919.75,0]. Result:R 1-1-E:1 | Loadout:["M4SPR","30Rnd_556x45_Stanag","M9SD","15Rnd_9x19_M9SD"] / Num:5"
14:58:23 No speaker given for Kristian Schaffer
14:58:23 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3259.23,9920.75,0]. Result:R 1-1-E:2 | Loadout:["AKS_74_Kobra","30Rnd_545x39_AK","MakarovSD","8Rnd_9x18_Makarov"] / Num:3"
14:58:23 No speaker given for Max Schaffer
14:58:23 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3260.23,9921.75,0]. Result:R 1-1-E:3 | Loadout:["Mk_48","100Rnd_762x51_M240","M9","15Rnd_9x19_M9"] / Num:1"
14:58:23 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3261.23,9922.75,0]. Result:R 1-1-E:4 | Loadout:["M24","5Rnd_762x51_M24","MakarovSD","8Rnd_9x18_Makarov"] / Num:1"
14:58:23 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3262.23,9923.75,0]. Result:R 1-1-E:5 | Loadout:["SVD_CAMO","10Rnd_762x54_SVD","MakarovSD","8Rnd_9x18_Makarov"] / Num:0"
14:58:23 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3263.23,9924.75,0]. Result:R 1-1-E:6 | Loadout:["SVD","10Rnd_762x54_SVD","MakarovSD","8Rnd_9x18_Makarov"] / Num:3"
14:58:23 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3264.23,9925.75,0]. Result:R 1-1-E:7 | Loadout:["M24_des_EP1","5Rnd_762x51_M24","MakarovSD","8Rnd_9x18_Makarov"] / Num:2"
14:58:23 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3265.23,9926.75,0]. Result:R 1-1-E:8 | Loadout:["SVD_CAMO","10Rnd_762x54_SVD","MakarovSD","8Rnd_9x18_Makarov"] / Num:0"
14:58:23 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3266.23,9927.75,0]. Result:R 1-1-E:9 | Loadout:["SVD","10Rnd_762x54_SVD","MakarovSD","8Rnd_9x18_Makarov"] / Num:3"
14:58:23 Wrong text element 'null'
14:58:23 Wrong text element 'null'
14:58:23 Wrong text element 'null'
14:58:23 Wrong text element 'null'
14:58:23 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3267.23,9928.75,0]. Result:R 1-1-E:10 | Loadout:["SVD_CAMO","10Rnd_762x54_SVD","MakarovSD","8Rnd_9x18_Makarov"] / Num:0"
14:58:23 "AIUNIT: Last Waypoint [R 1-1-D,4] at [3317.23,9978.75,80]"
14:58:24 Wrong text element 'null'
14:58:24 Wrong text element 'null'
14:58:24 Wrong text element 'null'
14:58:24 Wrong text element 'null'
14:58:25 Wrong text element 'null'
14:58:25 Wrong text element 'null'
14:58:25 Wrong text element 'null'
14:58:25 Wrong text element 'null'
14:58:26 Wrong text element 'null'
14:58:26 Wrong text element 'null'
14:58:26 Wrong text element 'null'
14:58:26 Wrong text element 'null'
14:58:27 Wrong text element 'null'
14:58:27 Wrong text element 'null'
14:58:27 Wrong text element 'null'
14:58:27 Wrong text element 'null'
14:58:28 "AIUNIT: Spawn initiated: Centre:[3257.23,9918.75] | Radius in m:80 | Waypoint number:4 | WeaponLevel:1"
14:58:28 No speaker given for Martin Schulz
14:58:28 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3258.23,9919.75,0]. Result:R 1-1-H:1 | Loadout:["Sa58P_EP1","30Rnd_762x39_SA58","MakarovSD","8Rnd_9x18_Makarov"] / Num:2"
14:58:28 No speaker given for Jens Weber
14:58:28 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3259.23,9920.75,0]. Result:R 1-1-H:2 | Loadout:["Mk_48","100Rnd_762x51_M240","M9","15Rnd_9x19_M9"] / Num:1"
14:58:28 No speaker given for Kristian Bauer
14:58:28 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3260.23,9921.75,0]. Result:R 1-1-H:3 | Loadout:["G36C_camo","30Rnd_556x45_G36","MakarovSD","8Rnd_9x18_Makarov"] / Num:2"
14:58:28 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3261.23,9922.75,0]. Result:R 1-1-H:4 | Loadout:["SVD","10Rnd_762x54_SVD","MakarovSD","8Rnd_9x18_Makarov"] / Num:3"
14:58:28 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3262.23,9923.75,0]. Result:R 1-1-H:5 | Loadout:["M24_des_EP1","5Rnd_762x51_M24","MakarovSD","8Rnd_9x18_Makarov"] / Num:2"
14:58:28 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3263.23,9924.75,0]. Result:R 1-1-H:6 | Loadout:["AK_107_pso","30Rnd_545x39_AK","M9","15Rnd_9x19_M9"] / Num:4"
14:58:28 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3264.23,9925.75,0]. Result:R 1-1-H:7 | Loadout:["M24","5Rnd_762x51_M24","MakarovSD","8Rnd_9x18_Makarov"] / Num:1"
14:58:28 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3265.23,9926.75,0]. Result:R 1-1-H:8 | Loadout:["SVD","10Rnd_762x54_SVD","MakarovSD","8Rnd_9x18_Makarov"] / Num:3"
14:58:28 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3266.23,9927.75,0]. Result:R 1-1-H:9 | Loadout:["SVD","10Rnd_762x54_SVD","MakarovSD","8Rnd_9x18_Makarov"] / Num:3"
14:58:28 "AIUNIT: Creating BAF_Soldier_L_DDPM by <NULL-object> at [3267.23,9928.75,0]. Result:R 1-1-H:10 | Loadout:["AK_107_pso","30Rnd_545x39_AK","M9","15Rnd_9x19_M9"] / Num:4"
14:58:28 "AIUNIT: Last Waypoint [R 1-1-G,4] at [3317.23,9978.75,80]"


thanks for your help i've 2 dayz_server.pbo :D

-----------------
is there anyway to have more than 1 Major event in the same time ?
 
You can double up all or parts of the mission system. You have make sure the second system uses separate marker files and public variables. I'm not going to write all the code for you here. I'm sure you can figure it out with some tinkering.
 
Afaik they aren't supposed to spawn there. Some times they dont give any crates, then again there are crates but you cant end the missions
 
I wasn't aware that missions spawning at Novy was a problem. They don't all spawn there, just some. I guess I'll wait for an explanatin about "change the settings" too. :)
 
I think he's talking about the missions in novy sabor spawning in and all the AI are dead in between a wall and a red building beside the church. And there are no boxes, just 2 uaz's. I think its a weapons cache one.

Also, the c-130 one spawns there and the humvee is usually in the wall of the church. Also, could anyone post how to add humanity to the missions. Thanks.
 
I think he's talking about the missions in novy sabor spawning in and all the AI are dead in between a wall and a red building beside the church. And there are no boxes, just 2 uaz's. I think its a weapons cache one.

Also, the c-130 one spawns there and the humvee is usually in the wall of the church. Also, could anyone post how to add humanity to the missions. Thanks.


re: dead AI at Novy - I've been adjusting settings trying to prevent Novy mission spawns but have not been successful to-date. AI still spawn dead. Have tried different variations of min/max range, terrain gradient, etc but none seem to work all the time.

http://tactical.nekromantix.com/wiki/doku.php?id=arma2:scripting:bis_fnc_findsafepos

Going to put this aside for a while. Maybe someone with working bis_fnc_findsafepos parameters can post them.
 
Code:
_coords =  [getMarkerPos "center",0,7000,10,0,10,0] call BIS_fnc_findSafePos;

I've been using this on our Epoch server and so far none of the missions have spawned in Novy.
 
Back
Top