OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Petrarch on 29 May 2005, 18:42:11
-
What would I add/change in the config file of a vehicle to change its capacity for carrying weapons and ammo?
I ask because I want to make a few weapons vehicles for a CTI mod I'm working on, but there's very little space, and so I end up with them carrying no magazines for a certain weapon, and when I pick up a new weapon from the vehicle, the old one falls on the floor rather than being put into the vehicle.
-
vehiclename addWeaponCargo ["M16", 10]
and
vehiclename addMagazineCargo ["M16", 10]
Of course this depends on what the carrying capacity of the vehicle is for weapons and magazines.
This is usually set in the config entry of the vehicle.
Planck
-
Read my post again and you'll see that you've not answered my question in any way.
I KNOW how to add weapons and mags to a vehicle.
I DON'T know how to increase the cargo capacity so I can add more weapons and mags.
As you say, this is set in the config file, which leads on to my original question, "What would I add/change in the config file of a vehicle to change its capacity for carrying weapons and ammo?"
-
Apologies......
Yep......you need these 2 lines in you config.cpp for the vehicle:
transportMaxMagazines=X;
transportMaxWeapons=X;
X being the number you require.
There is also the TransportMagazines and the TransportWeapons classes for the vehicle which is used to predefine the weapon and magazine types carried by that vehicle.
If you require that info as well just say. ;D
Planck ::) ::)