Jump to content
Sign in to follow this  
rotceh_dnih (DayZ)

random tents

Recommended Posts

hey guys im really new to arma 2 and dayz and i wish to make some changes to the mod and one thing our clan was thinking was to have random tent models like the little dome tent models thats in the game so i looked through the code tonight and seen where it sets the model in the equip.bin file and would like to know if something like this would work


class ItemTent: CA_Magazine
{
scope = 2;
count = 1;
type = "(256 * 3)";
displayName = "$STR_EQUIP_NAME_20";
switch(Random(1)) do{
case "0":{
model = "something else";
};
case "1":{
model = "\dayz_equip\models\tentbag_gear.p3d";
};
};
picture = "\dayz_equip\textures\equip_tentbag_ca.paa";
descriptionShort = "$STR_EQUIP_DESC_20";
class ItemActions
{
class Pitch
{
text = "$STR_PITCH_TENT";
script = "spawn player_tentPitch;";
};
};
};

ive never coded anything in arma so sorry if this is really wrong , lol a noobs gota start somewhere :)

Edited by rotceh_dnih

Share this post


Link to post
Share on other sites

*a little bump*

I'm actually following this thread. Hoping someone that knows will actually chime in and help out. We'd like to do the same kind of thing.

Share this post


Link to post
Share on other sites

If you are still looking for help, I may be able to shed some light. I am currently working on my own version in my private server, so as soon as I know for sure, I can definitely help you out. That's if you are still interested.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×