Jump to content

Static Look Crates at different locations for other people


Anonymouse

Recommended Posts

Hello everyone. 

I made a script for my server were their is a static loot crate that will spawn at a static missions.

The script works, it spawns in with the loot but for some reason when I put it on the server and not on my local system it's lower then normal (If the crate is on the ground and you can not longer see it, if it is in a building it is 1 floor down in the roof), But this only happens for me, Everyone else can see it in the right location.

Any idea why this is happening?

 

_vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["CZBasicWeapons_EP1", [7761.99,4491.99,0.00144958], [], 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",1];
  _this addMagazineCargoGlobal ["20Rnd_762x51_DMR", 5];
  _this addMagazineCargoGlobal ["metal_floor_kit",5];
  _this addMagazineCargoGlobal ["cinder_wall_kit",10];
  _this addMagazineCargoGlobal ["CinderBlocks",20];
  _this addMagazineCargoGlobal ["MortarBucket",10];
  _this addMagazineCargoGlobal ["ItemVault",1];
  _this setPos [7761.99,4491.99,0.00144958];

};

Link to comment
Share on other sites

Hello everyone. 

I made a script for my server where there is a static loot crate that will spawn at a static missions.

The script works, it spawns in with the loot but for some reason when I put it on the live server and not on my local system it's lower then normal (If the crate is on the ground and you can no longer see it, if it is in a building it is 1 floor down in the roof), But this only happens for me, Everyone else can see it in the right location.

Any idea why this is happening?

 

_vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["CZBasicWeapons_EP1", [7761.99,4491.99,0.00144958], [], 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",1];
  _this addMagazineCargoGlobal ["20Rnd_762x51_DMR", 5];
  _this addMagazineCargoGlobal ["metal_floor_kit",5];
  _this addMagazineCargoGlobal ["cinder_wall_kit",10];
  _this addMagazineCargoGlobal ["CinderBlocks",20];
  _this addMagazineCargoGlobal ["MortarBucket",10];
  _this addMagazineCargoGlobal ["ItemVault",1];
  _this setPos [7761.99,4491.99,0.00144958];

};

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...