Loot boxes in Air

Tang0

Well-Known Member
Hi , im using the following script to spawn loot bxes into a static Ai base, boxes work fine BUT sometimes one of the boxes floats about 100m in the air above its proper position , i use infistar but dont no if this is causing the problem, the script is loaded at server start from server_functions after the base is loaded.

//Special crates for Devils Castle AI Base

if (isServer) then {

_vehicle_11 = objNull;

if (true) then
{
_this = createVehicle ["USLaunchersBox", [6869.5586, 11483.678, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_11 = _this;
_this setDir -47.931877;
_vehicle_11 setVariable ["ObjectID","1",true];
_vehicle_11 setVariable ["permaLoot",true];
PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_vehicle_11];

clearWeaponCargoGlobal _vehicle_11;
clearMagazineCargoGlobal _vehicle_11;


_this addMagazineCargoGlobal ["30m_plot_kit",1];
_this addMagazineCargoGlobal ["CinderBlocks",15];
_this addMagazineCargoGlobal ["ItemWire",10];
_this addMagazineCargoGlobal ["ItemWoodWallGarageDoorLocked",1];
_this addMagazineCargoGlobal ["ItemGenerator",1];
_this addMagazineCargoGlobal ["ItemSandbag",10];
_this addMagazineCargoGlobal ["ItemBriefcase100oz",5];
_this addMagazineCargoGlobal ["ItemTankTrap",5];
_this addMagazineCargoGlobal ["ItemVault",1];
_this addMagazineCargoGlobal ["ItemComboLock",1];


};
_vehicle_12 = objNull;

if (true) then
{
_this = createVehicle ["USLaunchersBox", [6863.7256, 11476.54, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_12 = _this;
_this setDir -2.8346391;
_vehicle_12 setVariable ["ObjectID","1",true];
_vehicle_12 setVariable ["permaLoot",true];
PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_vehicle_12];

clearWeaponCargoGlobal _vehicle_12;
clearMagazineCargoGlobal _vehicle_12;


_this addWeaponCargoGlobal ["M110_NVG_EP1",1];
_this addWeaponCargoGlobal ["BAF_AS50_SCOPED_DZ",1];
_this addMagazineCargoGlobal ["20Rnd_762x51_B_SCAR",10];
_this addMagazineCargoGlobal ["5Rnd_127x99_as50",10];

};


};
 
Back
Top