Jump to content
Sign in to follow this  
Heeeere's johnny!

How to extend timeToLive for ammo?

Recommended Posts

Hi everyone,

as the title already states. I found the timeToLive in the configFile, but when I tried to derive a new ammo class from an existing one (with extended timeToLive), I wasn't able to do so as the compiler states something like "Tried to add code after end of configFile" (or something like that, couldn't try it in the younger past).

Anyway, this is the file I tried to #include in the description.ext:

/*extern*/ class B_556x45_Ball;

class B_65x39_Caseless : B_556x45_Ball
{
   timeToLive = 10;
};

I guess this is too simple plus I probably included it at the wrong position. So, could you please give me an instruction on how to achieve that? I'd be very thankful!

Best regards,

waltenberg aka Johnny

Edited by waltenberg

Share this post


Link to post
Share on other sites

description.ext ? :S are you trying to define ammo on a mission? you can't do that

If you really want to do an addon to define a new ammo type:

1- Add A3_Weapons_F to your required addons on your addon CfgPatches definition.

2- B_65x39_Caseless already exist in A3, so you are modifying an existing ammo not creating a new one :S

2- All that definition should be inside a class CfgAmmo { };

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  

×