OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: LimeCordial on 24 Aug 2002, 19:43:18

Title: adding ammo and weapons to vehicles and boxes
Post by: LimeCordial on 24 Aug 2002, 19:43:18
how do you do that?

this addweaponcargo [NAME, AMOUNT]

this addmagazinecargo [NAME,AMOUNT]

dont work.  ???
Title: Re:adding ammo and weapons to vehicles and boxes
Post by: seanver on 24 Aug 2002, 20:25:54
Try to clear their cargo first
Title: Re:adding ammo and weapons to vehicles and boxes
Post by: FlidMerchant on 24 Aug 2002, 20:33:03
Name needs quotes.Also i tried adding a dragunov to a crate in a mission, didn't work.I changed the crate for a truck and it was fine.
Title: Re:adding ammo and weapons to vehicles and boxes
Post by: Pow3r on 26 Aug 2002, 01:09:21
Can someone give a link to a complete (I say again, complete) list of all the weapons that one can put into or take out of a unit's or cargo's inventory?  I've found some instances where people mention specific ones like the xms but in my searching I've yet to find a link or mention of all the weapon and magazine object names.  Thanks very much for your help.
Title: Re:adding ammo and weapons to vehicles and boxes
Post by: Messiah on 26 Aug 2002, 02:51:00
*sigh*

maybe some1 should explain the beauty of the command reference - its a very simple html file that tells you all these simple questions...

anyways - i know it isnt simple when u dont know how to do it, so of course im gonna help.

type this into the ammobox init field:

this addweaponcargo ["weaponname", #]

change # to the number you want. For magazines just change it to addmagazinecargo

:thumbsup: