How To Add Cargo To Vehicles
Like Machine Guns, Hand Guns, Grenades, Rocket Launchers & Ammo Clips or anything else you wish to be able to pick up while within the game. Mercs Safe, or an Access Keycard kinda pick up ideas and more.. so when you get out on foot you can carry / pick up weapons, re-load & re-arm your self... without having to go back into the mission editor.name AddWeaponCargo ["weapon",number]
Where name is the name of the (object or vehicle or unit) you placed that the weapons will be added to
weapon is the reserved name of the weapon you want added and number is the quantity of that weapon to be made available in the object.
For example, if you want to add 15 Mortars to a truck you named convoy5
you would insert the following statement into its INT or a script:
convoy5 AddWeaponCargo ["Mortar",15]
To add ammunition magazines to the object, instead of weapons, just replace the command AddWeaponCargo with the command AddMagazineCargo
To remove weapons and magazine previously added to an object, use the following commands:
(such as for making space in an Ammo/Weapon Crate)
ClearWeaponCargo name
ClearMagazineCargo name
Where name is the name of the object from which weapons or magazines are to be removed.
(the Specific Weapon names & Specific Ammo names are not required)
Many addons have their OWN Class names for weapons and also OFP/CWA also has its own per-defined weapons. But ber in mind if you add weapons from actual mods in your missions, then people will also need those weapons/mods to play your mission. So if your new to this, try to stick to official ofp/cwa weapon & ammo class names for now. because needing loads of addons puts people off playing missions.
This is the INT Field where commands are placed
Int Field Within The Mission Editor (OFP and CWA) |
To be Updated.....