// Enter Protected Area Alert // Inital Definitions _protectedArea = _this select 0; _protectedAreaCoords = _this select 1; _protectedAreaRadius = _this select 2; // Alert Messages "Protected_Area" cutRsc ["Rsc_Protected_Area", "PLAIN"]; titleText ["<t color='#FFFFFF' size='2'font='PuristaBold'>ENTERING PROTECTED AREA</t>", "PLAIN DOWN", -1, true, true]; player say2D "hintExpand"; // Invulnerbaility while {true} do { // Protect Players on Foot & in Vehicles if (vehicle player in _protectedArea) then { vehicle player allowDamage false; player allowDamage false; }; // Protect empty Vehicles { if ({alive _x} count crew _x < 1) then { { vehicle _x allowDamage false; _x allowDamage false; } count (crew _x); vehicle _x allowDamage false; _x allowDamage false; } } forEach (nearestObjects [_protectedAreaCoords,[],_protectedAreaRadius]); };