Home Forum MultiPlayer Game Hacks & Cheats Other Semi-Popular First Person Shooter Hacks DayZ Mod & Standalone Hacks & Cheats DayZ Help & Requests ❓ Creating Supply Box Posts 1–6 of 6 · Page 1 of 1
❓ Creating Supply Box
I need he creating a building supply box for epoch with everything in it. i could do other box's but just cant get class name for all the building supplies i have this part down
Code:
_className = "USBasicWeaponsBox";
_mypos = getposATL player;
_dir = getdir player;
_mypos = [(_mypos select 0)+2*sin(_dir),(_mypos select 1)+2*cos(_dir), (_mypos select 2)];
_magicbox = createVehicle [_className, _mypos, [], 0, "CAN_COLLIDE"];
_magicbox setDir _dir;
_magicbox setposATL _mypos;
can someone help me or give me the rest of the codes please.
Code:
EPOCHPOS = getPosATL player;
EPOCHREMOTEBOX1 = format ["
if (isServer) then {
EPOCHOBJECTBOX = 'USBasicAmmunitionBox' createVehicle %1;
clearWeaponCargoGlobal EPOCHOBJECTBOX;
clearMagazineCargoGlobal EPOCHOBJECTBOX;
clearBackpackCargoGlobal EPOCHOBJECTBOX;
EPOCHOBJECTBOX setVariable ['permaLoot',true];
_uniqueid = str(round(random 999999));
EPOCHOBJECTBOX setVariable ['ObjectID', _uniqueid, true];
EPOCHOBJECTBOX setVariable ['ObjectUID', _uniqueid, true];
EPOCHOBJECTBOX setVariable ['CargoChecked',[1,2],true];
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,EPOCHOBJECTBOX];
PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,EPOCHOBJECTBOX];
EPOCHOBJECTBOX setVariable ['lastUpdate',time,true];
};
",EPOCHPOS];
[EPOCHREMOTEBOX1] call epochExec;
sleep 2;
epochRemoteBox = "if (isServer) then {
[] spawn {
call compile ('
EPOCHOBJECTBOX addMagazineCargoGlobal[''ItemID'',1];
');
};
};
";
[epochRemoteBox] call epochExec;
cutText ["Spawned box", "PLAIN DOWN"];
Originally Posted by
Chris
Code:
EPOCHPOS = getPosATL player;
EPOCHREMOTEBOX1 = format ["
if (isServer) then {
EPOCHOBJECTBOX = 'USBasicAmmunitionBox' createVehicle %1;
clearWeaponCargoGlobal EPOCHOBJECTBOX;
clearMagazineCargoGlobal EPOCHOBJECTBOX;
clearBackpackCargoGlobal EPOCHOBJECTBOX;
EPOCHOBJECTBOX setVariable ['permaLoot',true];
_uniqueid = str(round(random 999999));
EPOCHOBJECTBOX setVariable ['ObjectID', _uniqueid, true];
EPOCHOBJECTBOX setVariable ['ObjectUID', _uniqueid, true];
EPOCHOBJECTBOX setVariable ['CargoChecked',[1,2],true];
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,EPOCHOBJECTBOX];
PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,EPOCHOBJECTBOX];
EPOCHOBJECTBOX setVariable ['lastUpdate',time,true];
};
",EPOCHPOS];
[EPOCHREMOTEBOX1] call epochExec;
sleep 2;
epochRemoteBox = "if (isServer) then {
[] spawn {
call compile ('
EPOCHOBJECTBOX addMagazineCargoGlobal[''ItemID'',1];
');
};
};
";
[epochRemoteBox] call epochExec;
cutText ["Spawned box", "PLAIN DOWN"];
wait it didnt work the text shows up but no box
Originally Posted by
kilroy8
wait it didnt work the text shows up but no box
You do realize this requires a working remote execution -.-
Originally Posted by
Lystic
You do realize this requires a working remote execution -.-
so i cant use a script executor?
Posts 1–6 of 6 · Page 1 of 1