OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mr.Peanut on 18 Jan 2006, 02:47:48

Title: Adding USMC ammo/weapons to ammo trucks
Post by: Mr.Peanut on 18 Jan 2006, 02:47:48
It seems to me there is no way to query the cargo contents of ammo/weapons crates or ammo trucks.  What I wanted to do was empty an ammo truck of its regular ammo (which I can do) and load it up with the equivalent contents of the two USMC ammo/weapons crates. I was hoping to simply get  a list of the ammo/weapons in a crate and pass that list to the ammo truck. I do not think this can be done. Can anyone confirm that it can not?

I guess I can use Chris' Editor to build up the crates, but I was looking for the easiest(laziest) way.
Title: Re:Adding USMC ammo/weapons to ammo trucks
Post by: macguba on 18 Jan 2006, 03:28:08
You are correct, it cannot be done.  
Title: Re:Adding USMC ammo/weapons to ammo trucks
Post by: bedges on 18 Jan 2006, 12:24:38
i may be missing something here, but i'll chip in anyways:

west crates - hand grenades & m16 magazines
west crates II - hand grenades & m16 magazines, mines, mortars and satchel charges
west crates (weapons) - hand grenades & m16 magazines, beretta 92f, fn_fal, glock 17, hk g3a4, uzi

as for quantities i'm not sure.
Title: Re:Adding USMC ammo/weapons to ammo trucks
Post by: macguba on 18 Jan 2006, 12:49:23
There is a reference tute in the ed depot somewhere with all the standard ammo crate contents.    I can't remember who made it (from the configs) but it was in response to me tearing my hair out on this very point some time ago.
Title: Re:Adding USMC ammo/weapons to ammo trucks
Post by: bedges on 18 Jan 2006, 12:58:36
you mean this one (http://www.ofpec.com/editors/resource_view.php?id=707)? ;)
Title: Re:Adding USMC ammo/weapons to ammo trucks
Post by: Mr.Peanut on 18 Jan 2006, 13:59:22
Thanks for the replies. What I wanted to do was get OFP to pass an array of the contents of the given crates. I would then pass these arrays to the ammo trucks using addWeaponCargo.  My question was whether there is a way to query the contents of crates and ammo trucks.  

Mac has confirmed what I thought was true; it is not possile to query them.
Title: Re:Adding USMC ammo/weapons to ammo trucks
Post by: Trapper on 18 Jan 2006, 14:12:57
Not really what you want but can't you just depbo the usmc addon and copy&past the weapon crates init lines into your mission?
They should consist of all the custom addmagazinecargo commands.