Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- File: fn_blowupborder.sqf
- Author: Sammy
- Description: boomy boomy there goes the walley
- */
- #include "..\..\script_macros.hpp"
- private["_wall","_handle","_markerwall"];
- _wall = param [0,ObjNull,[ObjNull]];
- if(isNull _wall) exitWith {}; //Bad object
- if(typeOf _wall != "Land_WallRegular") exitWith {hint localize "STR_ISTR_Blast_VaultOnly"};
- if(_wall GVAR ["chargeplaced",false]) exitWith {hint localize "STR_ISTR_Blast_AlreadyPlaced"};
- if(!([false,"blastingcharge",1] call life_fnc_handleInv)) exitWith {}; //Error?
- _wall SVAR ["chargeplaced",true,true];
- [[1,format["DISPATCH: THE BORDER IS BEING BREACHED!!!",_storename]],"life_fnc_broadcast",west,false] spawn life_fnc_MP;
- [[0,format["DISPATCH: THE BORDER IS BEING BREACHED!!!",_storename]],"life_fnc_broadcast",west,false] spawn life_fnc_MP;
- [[0,format["TAKISTAN NEWS: THE BORDER IS BEING BREACHED.",_storename]],"life_fnc_broadcast",civilian,false] spawn life_fnc_MP;
- [[1,format["TAKISTAN NEWS: THE BORDER IS BEING BREACHED.",_storename]],"life_fnc_broadcast",civilian,false] spawn life_fnc_MP;
- uiSleep 2;
- [[0,format["TAKISTAN NEWS: THE BORDER IS BEING BREACHED",_storename]],"life_fnc_broadcast",civilian,false] spawn life_fnc_MP;
- [[1,format["TAKISTAN NEWS: THE BORDER IS BEING BREACHED",_storename]],"life_fnc_broadcast",civilian,false] spawn life_fnc_MP;
- hint localize "STR_ISTR_Blast_KeepOff";
- waitUntil {scriptDone _handle};
- uiSleep 15;
- _bomb = "Bo_GBU12_LGB_MI10" createVehicle (getPos _wall);
- _wall SVAR ["chargeplaced",false,true];
- _markerwall = createMarker ["WallBreach", (getpos _wall)];
- "WallBreach" setMarkerColorLocal "ColorRed";
- "WallBreach" setMarkerTextLocal "BREACH";
- "WallBreach" setMarkerTypeLocal "mil_warning";
- deleteVehicle _wall;
- uiSleep 130;
- deleteMarker "WallBreach";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement