Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Medical Crate by lazyink (Full credit for original code to TheSzerdi & TAW_Tonic)
- Updated to new format by Vampire
- */
- private ["_missName","_coords","_randomnumber","_randomnumber2","_coord1","_coord2","_coord3","_randomcoord","_hint","_crash","_net","_crate"];
- //Name of the Mission
- _missName = "Medical Cache";
- //DZMSFindPos loops BIS_fnc_findSafePos until it gets a valid result
- _coords = call DZMSFindPos;
- _randomnumber = floor(random 35);
- _randomnumber2 = floor(random 25);
- _coord1 = [(_coords select 0) + _randomnumber, (_coords select 1) + _randomnumber2];
- _coord2 = [(_coords select 0) + _randomnumber, (_coords select 1) + _randomnumber];
- _coord3 = [(_coords select 0) + _randomnumber, (_coords select 1) + _randomnumber2];
- _randomcoord = [_coord1,_coord2,_coord3] call BIS_fnc_selectRandom;
- // Send Top Right message to users , requires Remote message script
- _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>"];
- customRemoteMessage = ['hint', _hint];
- publicVariable "customRemoteMessage";
- //DZMSAddMajMarker is a simple script that adds a marker to the location
- [_coords,_missname] ExecVM DZMSAddMajMarker;
- //Lets add the scenery
- _crash = createVehicle ["UralWreck",_randomcoord,[], 10, "CAN_COLLIDE"];
- _net = createVehicle ["Land_CamoNetB_NATO",[(_coords select 0) - 0.0649, (_coords select 1) + 0.6025,0],[], 0, "CAN_COLLIDE"];
- [_net] call DZMSProtectObj;
- _crate = createVehicle ["TKVehicleBox_EP1",_randomcoord,[], 0, "CAN_COLLIDE"];
- //DZMSBoxFill fills the box, DZMSProtectObj prevents it from disappearing
- [_crate,"construction"] ExecVM DZMSBoxSetup;
- //DZMSAISpawn spawns AI to the mission.
- //Usage: [_coords, count, skillLevel, unitArray]
- [_coord1,6,1,"DZMSUnitsMajor"] call DZMSAISpawn;
- sleep 5;
- [_coord1,6,1,"DZMSUnitsMajor"] call DZMSAISpawn;
- sleep 5;
- [_coord1,4,1,"DZMSUnitsMajor"] call DZMSAISpawn;
- sleep 5;
- //Let the timer know the mission is over
- DZMSMajDone = true;
Advertisement
Add Comment
Please, Sign In to add comment