adding loot to buildings

hello, i have added building via my server.pbo in the mission.sqf file but i cant get loot to spawn.
Can someone some help me with this matter

Code:
_vehicle_0165 = objNull;
if (true) then
{
  _this = createVehicle ["Land_A_BuildingWIP", [6880.2524, 2629.4719, -0.091589585], [], 0, "CAN_COLLIDE"];
  _vehicle_0165 = _this;
  _this setDir 43.376938;
  _this setPos [6880.2524, 2629.4719, -0.091589585];
};

_vehicle_0166 = objNull;
if (true) then
{
  _this = createVehicle ["Land_A_GeneralStore_01", [6604.6968, 2451.5781, -2.2888184e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_0166 = _this;
  _this setDir 132.14041;
  _this setPos [6604.6968, 2451.5781, -2.2888184e-005];
};
Thats what i have added i dunno if there is something else that needs done
 
I have the same problem with "Land_MBG_GER_SUPERMARKET_3". So I would also love to know what to do. It's already set to Land. Anyone have any ideas?
 

FallingSheep

OpenDayZ Lord!
hello, i have added building via my server.pbo in the mission.sqf file but i cant get loot to spawn.
Can someone some help me with this matter

Code:
_vehicle_0165 = objNull;
if (true) then
{
  _this = createVehicle ["Land_A_BuildingWIP", [6880.2524, 2629.4719, -0.091589585], [], 0, "CAN_COLLIDE"];
  _vehicle_0165 = _this;
  _this setDir 43.376938;
  _this setPos [6880.2524, 2629.4719, -0.091589585];
};

_vehicle_0166 = objNull;
if (true) then
{
  _this = createVehicle ["Land_A_GeneralStore_01", [6604.6968, 2451.5781, -2.2888184e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_0166 = _this;
  _this setDir 132.14041;
  _this setPos [6604.6968, 2451.5781, -2.2888184e-005];
};
Thats what i have added i dunno if there is something else that needs done
you can try custom loot tables there easy to install

for epoch follow below

  1. open init.sqf and add this to it
    Code:
    DZE_MissionLootTable = true;
    download the loot files for epoch 1.0.5.1 here
    https://www.dropbox.com/s/lia5p0hhc1svm2a/loot.rar

    extract it and place the loot folder in your MPMission folder

  2. open description.ext and add under this
    Code:
    enableItemsDropping = 0;
    add this
    Code:
    #include"loot\config\CfgBuildingLoot.hpp"
    #include"loot\config\CfgLootSmall.hpp"
    #include"loot\config\cfgLoot.hpp"
 

FallingSheep

OpenDayZ Lord!
I have the same problem with "Land_MBG_GER_SUPERMARKET_3". So I would also love to know what to do. It's already set to Land. Anyone have any ideas?
there is no loot spawns for that building as far as i know, you could use custom loot tables and then add the building in and adding it to CfgBuildingPos.hpp
just try adding this to it

Code:
class Land_MBG_GER_SUPERMARKET_3: Supermarket {
   lootPos[] = {{11.8149,1.27979,-1.20155},{5.10449,1.61377,-1.20155},{1.70215,3.4292,-1.20155},{-0.771973,2.04102,-1.20155},{-3.59473,-6.04688,-1.20155},{-2.38428,-5.82202,-1.20155},{10.5171,-6.46729,-1.20155},{12.8472,-4.97754,-1.20155},{8.63623,-3.65381,-1.20155},{-3.22852,-10.0454,-1.21081}};
  
 lootPosZombie[] = {{12.4048,-1.49463,-0.326549},{3.18848,1.23926,-0.326549},{13.1211,4.95093,-0.326549},{-9.59521,-3.69678,-0.326549},{6.66309,-3.92041,-0.326549},{-8.38525,-5.50586,-0.326549},{8.26074,-5.41235,-0.326549},{4.03369,-5.50342,-0.326549}};
  
 lootPosSmall[] = {{11.0537,-0.321289,-0.661549},{11.0303,2.8833,0.0484514},{10.6646,1.86377,-0.651548},{6.66162,-2.69971,-0.611548},{6.02979,-2.6416,-0.611548},{2.16553,-2.68262,-0.611548},{-1.36963,-2.75684,-0.611548},{-0.919434,-0.283936,-0.301549},{0.583008,-0.308594,-1.01155},{0.804199,3.0752,-0.311549},{4.90234,3.04053,0.0484514},{-5.73779,0.694824,-0.20155},{0.796875,0.0898438,-0.301549},{2.73145,2.66406,-0.301549},{0.523926,2.81567,-1.01155},{-4.8208,2.87158,-0.701549},{-3.87061,-5.0415,-0.731549},{-4.73096,-5.00537,0.408451},{-2.1792,-5.02222,-0.351549},{-3.39795,-6.95508,-0.731549},{-3.58203,-7.24365,-0.731549},{-3.49756,-7.12695,0.408451},{-9.95215,-6.05859,0.348451},{13.4136,-5.93457,0.408451},{13.4463,-4.45898,0.028451},{13.4424,-6.20215,-0.351549},{2.93018,-8.67773,-0.351549},{1.53516,-6.79199,-0.351549},{7.16211,-5.12427,-0.351549},{6.79346,-5.11816,-0.73155},{2.87158,-6.91943,-0.73155},{0.0541992,-5.03271,-0.73155},{-1.979,-8.6875,-0.73155},{-5.84424,-5.04883,-0.73155},{-6.99268,-5.06836,-1.11155},{5.23535,-6.8335,-1.11155},{0.290039,-8.68701,-1.11155},{-0.649414,-8.68115,0.40845},{-0.983398,-9.56299,-1.21082}};
};
this is the normal supermarket loot spawns so loot will not be in right places but you can figure the right places/spawn by changing the postions
 
Top