Jump to content

Recommended Posts

if any 1 don't like this don't say any thing ------->EASY<--------

hello put some code from other scripts together  to day not tested at all hope it works. this is a pvp mission no ai like king of the hill but get loot not points.

add this to misson.sqf at the bottom. ----> execVM "\z\addons\dayz_server\missions\Battlefield.sqf;

\z\addons\dayz_server\missions\mission.sqf; this just to see were it is

then make a new file called Battlefield.sqf copy and pase this in new file then  place file in the directory given. ------> \z\addons\dayz_server\missions\Battlefield.sqf

///////////////////////////   this is the code  //////////////////////////////// 

diag_log("Battlefield Running"); // this is logs to the rpt to see ever thing is running

// sleep 000; = seconds to wait so sleep 30; will take 30 seconds and so on.

sleep 900;   // 900 = 15mins

_vehicle_1 = objNull;
if (true) then
{
  _this = createVehicle ["any building here", [91.366577, 1544.5175, -1.9073486e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_1 = _this;
  _this setDir -93.674492;
  _this setPos [91.366577, 1544.5175, -1.9073486e-006]];
};

_this marker = createMarker [91.37693, 1544.4531, 1.8119812e-005];
_this marker setMarkerShape "ELLIPSE";
_this marker setMarkerColor "ColorRed";
_this marker setMarkerAlpha 0.5;
_this marker setMarkerSize [(_markerRadius + 50), (_markerRadius + 50)];
 
if (_debug) then {
_this marker = createMarker [91.37693, 1544.4531, 1.8119812e-005];
_this marker setMarkerShape "ICON";
_this marker setMarkerType "mil_dot";
_this marker setMarkerColor "ColorBlack";
_this marker setMarkerAlpha 1;
_this marker setMarkerText "Battlefield";
};

sleep 10;

[nil,nil,rTitleText,"Battlefield Has started take control!!!!", "PLAIN",10] call RE;

sleep 20;

[nil,nil,rTitleText,"Battlefield intell it will Take 10mins loot to spawn!!!!", "PLAIN",10] call RE;

sleep 3;

diag_log("Battlefield Loot Box spawning");

sleep 600; // 600 = 10mins

[nil,nil,rTitleText,"Battlefield loot has spawned!!!!", "PLAIN",10] call RE;


_vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["CZBasicWeapons_EP1", [ 91.366577, 1544.5175, -1.9073486e-006 ], [], 0, "CAN_COLLIDE"];
  _vehicle_0 = _this;
  _uniqueid = str(round(random 999999));
    _this setVariable ["ObjectID", _uniqueid, true];
    _this setVariable ["ObjectUID", _uniqueid, true];
    _this setVariable ["permaLoot",true];
  clearWeaponCargoGlobal _this;
  clearMagazineCargoGlobal _this; 
  _this addWeaponCargoGlobal ["vil_M110sd",3];
  _this addMagazineCargoGlobal ["20Rnd_762x51_DMR", 5];
  _this addMagazineCargoGlobal ["metal_floor_kit",10];
  _this addMagazineCargoGlobal ["cinder_wall_kit",10];
  _this addMagazineCargoGlobal ["CinderBlocks",40];
  _this addMagazineCargoGlobal ["MortarBucket",10];
  _this addMagazineCargoGlobal ["ItemVault",2];
  _this setPos [ 91.366577, 1544.5175, -1.9073486e-006 ];

};

sleep 1;

// smoke to see were the box is XD

_vehicle_1 = objNull;
if (true) then
{
  _this = createVehicle ["SmokeShell", [91.366577, 1544.5175, -1.9073486e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_1 = _this;
  _this setDir -93.674492;
  _this setPos [ 91.366577, 1544.5175, -1.9073486e-006 ];
};

diag_log("Battlefield Loot Box spawned");

 

// battlefield 1.5 coming soon

Link to comment
Share on other sites

8 minutes ago, Pro_Speedy said:

 

So this is a epoch event with treasure loot, renamed to battlefield?

 

dude just change the code mite fined that only use the loot part from it and not epoch event just timers.... to a player looks like a mission... working now on my server np

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...