Custom buildings help

easytrance

New Member
Hey guys, i've used the 3d editor to add some new barracks and a couple of bases around the map, the only problem is that loot doesn't spawn inside them and zombies don't spawn outside them or anything.

Some help would be great thanks, i've already tried having a look round but can't seem to find a fix.
 
Are you sure your testing the barracks in Dayz not the Arma editor?

Also is it "mii_barracks_i" (something like that) your using?
 
When I was adding barracks, I had to edit the Barrack's building to be the correct one - the one I found ended in EP1, which was NOT the one that spawns loot. Use the class name that ProSpeedy posted.
 
Oh i was using "Barracks2"

So if i change them to legit ones they'll spawn loot?

And what about hospital tents?

Is there a list somewhere of building that spawn loot?

Thanks guys
 
I only wish. I have to find them manually and test. The hospital tents are on my editor list somewhere, but I use the OA lite upgrade so I'm not sure if I saw it in those lists or the standard list.
 
I was searching for an old post I made as I need to do this in arma 3.

It works like this.

If you add a building which is already in the following code:

https://github.com/R4Z0R49/DayZMod/blob/Release_1.7.6/SQF/dayz_code/config.cpp#L876

For example:

class Land_Ind_Garage01: Industrial {
lootPos[] = {{-0.580078,-1.49707,-1.23483},{-0.834473,2.75781,-1.22563},{2.47754,-1.12891,-1.23714},{1.31934,1.63086,-1.23228}};
};

Then it will spawn loot.

If its not there, then you need to add the co-ordinates and loot tables which is quite a bit more and where I hope I can find my old script I am searching for. It will also need you to create your own mod (dayz_code.pbo).
 
Back
Top