I noticed a sample event in the dayz_server.pbo that's not used, it's a random bombing from an aircraft but all it has is the bomb itself, no warning message, no aircraft to look out for, nothing, so I thought I'd flesh it out a little, at least once the warning message comes up people will have a few seconds to listen for the jet and get the hell away.
Could I get someone who's more familiar with scripting than me to take a look over it, I haven't tried running it yet, I'd just like another set of eyes.
Original:
// Sample Drop Bombprivate ["_position"];_position = [MarkerPosition,0,DynamicVehicleArea,10,0,2000,0] call BIS_fnc_findSafePos;bomb = createVehicle ["Bo_GBU12_LGB", [(_position select 0),(_position select 1), 1000], [], 0, "CAN_COLLIDE"];
My modified one:
// Sample Drop Bombprivate ["_position","_hint","_veh"];if (isNil "EPOCH_EVENT_RUNNING") then {EPOCH_EVENT_RUNNING = false;};// Check for another event runningif (EPOCH_EVENT_RUNNING) exitWith {diag_log("Event already running");};// Send message to users[nil,nil,rTitleText,"A survivor has spotted a UN Bombing Strike coming in, listen for it and take cover!", "PLAIN",10] call RE;sleep 30;_position = [MarkerPosition,0,DynamicVehicleArea,10,0,2000,0] call BIS_fnc_findSafePos;_veh = createVehicle ["F35B", [(_position select 0),(_position select 1) - 500, 500], [], 0, "FLY"];_crew = createVehicleCrew _veh;sleep 10;bomb = createVehicle ["Bo_GBU12_LGB", [(_position select 0),(_position select 1), 500], [], 0, "CAN_COLLIDE"];// Clean updeleteVehicle _veh;deleteVehicleCrew driver _veh;EPOCH_EVENT_RUNNING = false;