OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Captain on 14 Jun 2005, 08:08:27

Title: Re-Arming CBT vehicles
Post by: Captain on 14 Jun 2005, 08:08:27
Quick question...

I have a mission using Combat! M2 and M240B hummers and be damned if I can get an ammo truck to carry ammo for them. I used this line to get the ammo classnames...

Code: [Select]
hint format["weapons: %1, magazines: %2",weapons this,magazines this]
and used these lines in a script to add them...

Code: [Select]
_crate AddMagazineCargo ["CBT_M2_50cal", 20]
_crate AddMagazineCargo ["CBT_M240B", 20]

the same script is adding about 20 LSR weapons and ammo with no problems, any thoughts?

Cap.