OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Serial Killer on 25 Feb 2005, 21:12:07

Title: Adding weapons, ammo, etc. to addon
Post by: Serial Killer on 25 Feb 2005, 21:12:07
How can I add weapons, ammo, etc. to my own addons? I mean like an ammo box, you can collect weapons and ammo from it, I don't mean units.. Thanks in advance!

Ps. It's wonderful day, everything is going fine and I made my first addon ;D ;)
Title: Re:Adding weapons, ammo, etc. to addon
Post by: Serial Killer on 26 Feb 2005, 08:48:03
Allright, one of my friends helped me, here's the config. You can add weapons and ammo to your own addon with that...

Code: [Select]
class TransportWeapons
{
class M16
{
weapon="M16";
count=1
};
};
class TransportMagazines
{
class M16
{
magazine="M16";
count=3
};
};

There's one problem.. Is that Count the quantity of weapons and ammo?

Ps: Sorry that I'm asking things like this.. I'm creating my first addon, that's why :-\
Title: Re:Adding weapons, ammo, etc. to addon
Post by: Planck on 26 Feb 2005, 17:31:38
Yes, I do believe that count means the number of weapons or magazines carried.


Planck