OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: madmedic on 19 Jun 2003, 01:41:18

Title: Can someone explain the weapon slots
Post by: madmedic on 19 Jun 2003, 01:41:18
Could someone please explain the "weaponslots" line in the config of a unit.
I want to make a unit able to carry a few more primary magazines...but I really dont know how to decipher the weapon slots line.
Title: Re:Can someone explain the weapon slots
Post by: Hudson on 19 Jun 2003, 10:17:55
From commented config v1.91
Code: [Select]
weaponSlots = WeaponSlotPrimary + 4 * WeaponSlotItem + WeaponSlotBinocular + WeaponSlotHandGun + 4*WeaponSlotHandGunItem;

I havnt got around to the soldier class yet but it looks like this is used to define what object types unit can carry. Not really the amount. You could however get creative and use an event handler to add extra ammo when running low.