Darihon

Untitled

Jul 17th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. /*
  2. Medical Crate by lazyink (Full credit for original code to TheSzerdi & TAW_Tonic)
  3. Updated to new format by Vampire
  4. */
  5.  
  6. private ["_missName","_coords","_coord1","_coord2","_coord3","_randomcoord","_hint","_crash","_net","_crate"];
  7.  
  8. //Name of the Mission
  9. _missName = "Medical Cache";
  10.  
  11. //DZMSFindPos loops BIS_fnc_findSafePos until it gets a valid result
  12. _coords = call DZMSFindPos;
  13. _coord1 = [(_coords select 0) + 20, (_coords select 1) + 10];
  14. _coord2 = [(_coords select 0) + 20, (_coords select 1) + 10];
  15. _coord3 = [(_coords select 0) + 20, (_coords select 1) + 10];
  16. _randomcoord = [_coord1,_coord2,_coord3] call BIS_fnc_selectRandom;
  17.  
  18. // Send Top Right message to users , requires Remote message script
  19. _hint = parseText format["<t align='left' color='#ffa953' shadow='2' size='1.50'>Construction mission</t><br/><t align='left' color='#FFFFF9F'>Bandits are trying to set up a IKEA resupply in the RED circle of the map. Locate the circle, find them, and take their stuff!</t>"];
  20. customRemoteMessage = ['hint', _hint];
  21. publicVariable "customRemoteMessage";
  22.  
  23. //DZMSAddMajMarker is a simple script that adds a marker to the location
  24. [_coords,_missname] ExecVM DZMSAddMajMarker;
  25.  
  26. //Lets add the scenery
  27. _crash = createVehicle ["UralWreck",_randomcoord,[], 10, "CAN_COLLIDE"];
  28. _net = createVehicle ["Land_CamoNetB_NATO",[(_coords select 0) - 0.0649, (_coords select 1) + 0.6025,0],[], 0, "CAN_COLLIDE"];
  29. [_net] call DZMSProtectObj;
  30.  
  31. _crate = createVehicle ["TKVehicleBox_EP1",_randomcoord,[], 0, "CAN_COLLIDE"];
  32.  
  33. //DZMSBoxFill fills the box, DZMSProtectObj prevents it from disappearing
  34. [_crate,"construction"] ExecVM DZMSBoxSetup;
  35.  
  36. //DZMSAISpawn spawns AI to the mission.
  37. //Usage: [_coords, count, skillLevel, unitArray]
  38. [[(_coords select 0) + 0.0352,(_coords select 1) - 6.8799, 0],6,1,"DZMSUnitsMajor"] call DZMSAISpawn;
  39. sleep 5;
  40. [[(_coords select 0) + 0.0352,(_coords select 1) - 6.8799, 0],6,1,"DZMSUnitsMajor"] call DZMSAISpawn;
  41. sleep 5;
  42. [[(_coords select 0) + 0.0352,(_coords select 1) - 6.8799, 0],4,1,"DZMSUnitsMajor"] call DZMSAISpawn;
  43. sleep 5;
  44.  
  45. //Let the timer know the mission is over
  46. DZMSMajDone = true;
Advertisement
Add Comment
Please, Sign In to add comment