//==========================================//
//					    //
//	  Do not edit this file		    //
//					    //
//==========================================//


//============== Create Markers =================
_marker = createMarkerLocal ["min_range", [0,0]];
"min_range" setMarkerShape "ellipse";
"min_range" setMarkerColor "colorred";
"min_range" setMarkerBrush "Border";

_marker = createMarkerLocal ["max_range", [0,0]];
"max_range" setMarkerShape "ellipse";
"max_range" setMarkerColor "Colororange";
"max_range" setMarkerBrush "Border";

//=============== Create Targets ===============

arty_target_b1 = "HeliHEmpty" createVehicle [0,0];
arty_target_b2 = "HeliHEmpty" createVehicle [0,0];
arty_target_b3 = "HeliHEmpty" createVehicle [0,0];

//=============== create Logics ==============

//============================= Fire Triggers ===================================================

trigger2 = createTrigger ["EmptyDetector", [0,0]];
trigger2 setTriggerArea [0, 0, 0, true];
trigger2 setTriggerActivation ["none", "PRESENT", true];
trigger2 setTriggerTimeout [0, 0, 0, true];
trigger2 setTriggerStatements ["fire_b2", "fire_b2 = true; fire2 = [] execvm 'artillery_ssp\fire\fire2.sqf' = true", "fire_b2 = false = false"];

trigger3 = createTrigger ["EmptyDetector", [0,0]];
trigger3 setTriggerArea [0, 0, 0, true];
trigger3 setTriggerActivation ["none", "PRESENT", true];
trigger3 setTriggerTimeout [0, 0, 0, true];
trigger3 setTriggerStatements ["fire_b1", "fire_b1 = true; fire2 = [] execvm 'artillery_ssp\fire\fire2.sqf' = true", "fire_b1 = false = false"];

trigger4 = createTrigger ["EmptyDetector", [0,0]];
trigger4 setTriggerArea [0, 0, 0, true];
trigger4 setTriggerActivation ["none", "PRESENT", true];
trigger4 setTriggerTimeout [0, 0, 0, true];
trigger4 setTriggerStatements ["fire_b3", "fire_b3 = true; fire2 = [] execvm 'artillery_ssp\fire\fire2.sqf' = true", "fire_b3 = false = false"];


//============================== Set Target Triggers ==============================================

trigger5 = createTrigger ["EmptyDetector", [0,0]];
trigger5 setTriggerArea [0, 0, 0, true];
trigger5 setTriggerActivation ["none", "PRESENT", true];
trigger5 setTriggerTimeout [0, 0, 0, true];
trigger5 setTriggerStatements ["set_target_b1", "set_target_b1 = true; target2 = [] execvm 'artillery_ssp\other\set_target2.sqf' = true", "set_target_b1 = false = false"];

trigger6 = createTrigger ["EmptyDetector", [0,0]];
trigger6 setTriggerArea [0, 0, 0, true];
trigger6 setTriggerActivation ["none", "PRESENT", true];
trigger6 setTriggerTimeout [0, 0, 0, true];
trigger6 setTriggerStatements ["set_target_b2", "set_target_b2 = true; target2 = [] execvm 'artillery_ssp\other\set_target2.sqf' = true", "set_target_b2 = false = false"];

trigger7 = createTrigger ["EmptyDetector", [0,0]];
trigger7 setTriggerArea [0, 0, 0, true];
trigger7 setTriggerActivation ["none", "PRESENT", true];
trigger7 setTriggerTimeout [0, 0, 0, true];
trigger7 setTriggerStatements ["set_target_b3", "set_target_b3 = true; target2 = [] execvm 'artillery_ssp\other\set_target2.sqf' = true", "set_target_b3 = false = false"];

//============================== Resupply Triggers ==============================================

trigger8 = createTrigger ["EmptyDetector", [0,0]];
trigger8 setTriggerArea [0, 0, 0, true];
trigger8 setTriggerActivation ["none", "PRESENT", true];
trigger8 setTriggerTimeout [0, 0, 0, true];
trigger8 setTriggerStatements ["resupply_b1", "resupply_b1 = true; re_supply = [] execvm 'artillery_ssp\ammo_supply\ammo_resupply.sqf' = true", "resupply_b1 = false = false"];

trigger9 = createTrigger ["EmptyDetector", [0,0]];
trigger9 setTriggerArea [0, 0, 0, true];
trigger9 setTriggerActivation ["none", "PRESENT", true];
trigger9 setTriggerTimeout [0, 0, 0, true];
trigger9 setTriggerStatements ["resupply_b2", "resupply_b2 = true; re_supply = [] execvm 'artillery_ssp\ammo_supply\ammo_resupply.sqf' = true", "resupply_b2 = false = false"];

trigger10 = createTrigger ["EmptyDetector", [0,0]];
trigger10 setTriggerArea [0, 0, 0, true];
trigger10 setTriggerActivation ["none", "PRESENT", true];
trigger10 setTriggerTimeout [0, 0, 0, true];
trigger10 setTriggerStatements ["resupply_b3", "resupply_b3 = true; re_supply = [] execvm 'artillery_ssp\ammo_supply\ammo_resupply.sqf' = true", "resupply_b3 = false = false"];

//================================ Cease Fire Triggers ======================================

trigger11 = createTrigger ["EmptyDetector", [0,0]];
trigger11 setTriggerArea [0, 0, 0, true];
trigger11 setTriggerActivation ["none", "PRESENT", true];
trigger11 setTriggerTimeout [0, 0, 0, true];
trigger11 setTriggerStatements ["cease_fire_b1", "cease_fire_b1 = true; cease_fire = [] execvm 'artillery_ssp\fire\cease_fire_s.sqf' = true", "cease_fire_b1 = false = false"];

trigger12 = createTrigger ["EmptyDetector", [0,0]];
trigger12 setTriggerArea [0, 0, 0, true];
trigger12 setTriggerActivation ["none", "PRESENT", true];
trigger12 setTriggerTimeout [0, 0, 0, true];
trigger12 setTriggerStatements ["cease_fire_b2", "cease_fire_b2 = true; cease_fire = [] execvm 'artillery_ssp\fire\cease_fire_s.sqf' = true", "cease_fire_b2 = false = false"];

trigger13 = createTrigger ["EmptyDetector", [0,0]];
trigger13 setTriggerArea [0, 0, 0, true];
trigger13 setTriggerActivation ["none", "PRESENT", true];
trigger13 setTriggerTimeout [0, 0, 0, true];
trigger13 setTriggerStatements ["cease_fire_b3", "cease_fire_b3 = true; cease_fire = [] execvm 'artillery_ssp\fire\cease_fire_s.sqf' = true", "cease_fire_b3 = false = false"];