Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. /*
  2. File: fn_blowupborder.sqf
  3.  
  4. Author: Sammy
  5. Description: boomy boomy there goes the walley
  6. */
  7.  
  8. #include "..\..\script_macros.hpp"
  9. private["_wall","_handle","_markerwall"];
  10. _wall = param [0,ObjNull,[ObjNull]];
  11.  
  12. if(isNull _wall) exitWith {}; //Bad object
  13. if(typeOf _wall != "Land_WallRegular") exitWith {hint localize "STR_ISTR_Blast_VaultOnly"};
  14. if(_wall GVAR ["chargeplaced",false]) exitWith {hint localize "STR_ISTR_Blast_AlreadyPlaced"};
  15. if(!([false,"blastingcharge",1] call life_fnc_handleInv)) exitWith {}; //Error?
  16.  
  17. _wall SVAR ["chargeplaced",true,true];
  18. [[1,format["DISPATCH: THE BORDER IS BEING BREACHED!!!",_storename]],"life_fnc_broadcast",west,false] spawn life_fnc_MP;
  19. [[0,format["DISPATCH: THE BORDER IS BEING BREACHED!!!",_storename]],"life_fnc_broadcast",west,false] spawn life_fnc_MP;
  20. [[0,format["TAKISTAN NEWS: THE BORDER IS BEING BREACHED.",_storename]],"life_fnc_broadcast",civilian,false] spawn life_fnc_MP;
  21. [[1,format["TAKISTAN NEWS: THE BORDER IS BEING BREACHED.",_storename]],"life_fnc_broadcast",civilian,false] spawn life_fnc_MP;
  22. uiSleep 2;
  23. [[0,format["TAKISTAN NEWS: THE BORDER IS BEING BREACHED",_storename]],"life_fnc_broadcast",civilian,false] spawn life_fnc_MP;
  24. [[1,format["TAKISTAN NEWS: THE BORDER IS BEING BREACHED",_storename]],"life_fnc_broadcast",civilian,false] spawn life_fnc_MP;
  25. hint localize "STR_ISTR_Blast_KeepOff";
  26. waitUntil {scriptDone _handle};
  27. uiSleep 15;
  28. _bomb = "Bo_GBU12_LGB_MI10" createVehicle (getPos _wall);
  29. _wall SVAR ["chargeplaced",false,true];
  30. _markerwall = createMarker ["WallBreach", (getpos _wall)];
  31. "WallBreach" setMarkerColorLocal "ColorRed";
  32. "WallBreach" setMarkerTextLocal "BREACH";
  33. "WallBreach" setMarkerTypeLocal "mil_warning";
  34. deleteVehicle _wall;
  35. uiSleep 130;
  36. deleteMarker "WallBreach";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement