/*
Auhtor: Natic | Technic-Zone.de
Date: 06.04.2019
Nobody is allowed to use or edit this Script without my Permissions
*/
private ["_side","_alarm","_pos","_marker"];
//create Alarm
_alarm = this select 1;
_pos = call BIS_fnc_randomPos;
_marker = createMarkerLocal [format["BMZ_marker"]];
_marker setMarkerColorLocal "ColorRed";
_marker setMarkerTypeLocal "mil_warning";
_marker setMarkerTextLocal format["!!! BMZ EINGELAUFEN !!!"];
//1 = _marker spawn {sleep 500; deleteMarkerLocal _this;}; //abgeschaltet, da man die BMZ via Dialog - Btn ausschaltet
call life_fnc_BMZ_msg;
sleep 5;
//Nachrichtensystem im script direkt eingebaut aufgrund von Faulheit
["BMZ Notruf", format["BMZ-EINSATZMELDUNG
%3
ACHTUNG: Eine BMZ ist eingelaufen"], false, "fast"] remoteExecCall ["natic_msgsystem", independent];
"alarm" remoteExec["playsound", independent];
[player]remoteExec["natic_BMZ_fire",independent];
sleep 10;
//create no fire
_markers = ["BMZ_marker"];
_ranges = [];
{
_ranges set [count _ranges, (player distance getMarkerPos _x)];
} forEach _markers;
if (player distance _markers < 50) then {
private ["_marker"];
["BMZ INFO", format["BMZ-FEHLALARM
%3
Es war ein Fehlalarm!"], false, "fast"] remoteExecCall ["natic_msgsystem", independent];
[player]remoteExec["natic_BMZ_fire",independent];
} else {};