Help adding buildings with loot spawns

m1lkm8n

Member
I need some help guys.

I can't seem to get my military tents and hangers to spawn loot and zeds.

I've added the configs for each building into the dayz_code but I'm getting nothing.

Can someone point me in the right direction. It would be much appreciated. I'll post my code when I get home so you guys can take a look but I can't seem to figure this out.
 
This is pretty funny because I am attempting to do the opposite. Are you doing things in the 3d editor as far as buildings go?
 
well im actually in the process of finishing up a map ive been working on. Ive got a little military base set up right outside one of the main towns and I cant find the mil tents that spawn items so Ive placed down a few other ones because I figured I can just add them into the code. but I cant seem to get them to work.

Code:
class Land_Stan_east_ep1: Military {
        maxRoaming = 1;
        lootPos[] = {{-0.670898,0.95459,-1.31049},{1.68506,-2.43384,-1.31049},{-1.76318,-1.62646,-1.31049}};
    }; // Qty: 1
 
Well while i've been editing i've been using all the buildings that are currently in dayz and i have no problems, they all spawn loot and zeds so not quite sure what your problem is, i haven't added any extra code or anything.

Example in my mission.sqm.
Code:
class Item104
        {
            position[]={7007.6089,0.23463951,7646.8584};
            azimut=73.086807;
            id=104;
            side="EMPTY";
            vehicle="Land_A_GeneralStore_01a";
            text="novy14";
        };
This supermarket spawns loot and zeds, no extra code added.

Barracks spawns loot and zeds.
Code:
        class Item85
        {
            position[]={12488.194,162.0751,12534.226};
            azimut=113.44302;
            id=85;
            side="EMPTY";
            vehicle="Land_Mil_Barracks_i";
            text="buil_1_2";
        };
 
Hmmm. I'm adding them to the dayz_code. It's weird because I have a big cemetery in one of my towns and I set the gravestones to spawn Zeds but I can't get the military tents like the ones at starry or berezino to work.

I know it has to be a class name issue or in your case through the mission file its the vehicle name.

Do you have any placed and if so can you throw up the name?
 
position[]={7007.6089,0.23463951,7646.8584};
azimut=73.086807;
id=104;
side="EMPTY";
vehicle="Land_A_GeneralStore_01a";
text="novy14";
};



//where it says 'id=104;could you just use that id on any enterable building for it to spawn that loot table?
 
Back
Top