OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: aggressor35 on 07 Nov 2002, 10:29:02

Title: Vehicle rearming from another Vehicle....
Post by: aggressor35 on 07 Nov 2002, 10:29:02
this my sound dumb but...., i know how to put ammo in crates for soldiers, no problem.  I also have the ammo list for vehicles but don't understand how to load an ammo truck to support a m2a2 bradley for example.
Title: Re:Vehicle rearming from another Vehicle....
Post by: Harnu on 09 Nov 2002, 00:21:07
Same way as the crates I believe.

This addweaponcargo ["name",amount]
This addmagazinecargo ["name",amount]
Title: Re:Vehicle rearming from another Vehicle....
Post by: Tomb on 09 Nov 2002, 00:44:08
In addition to this, say ya wanna have a few boxes of M2A2 ammo in
the back of a jeep (for fast rearming), put this in the INIT of the jeep :

This SetAmmoCargo 1; This AddMagazineCargo ["Cannon25AP", #]

where the # would be the number, oy?!   :joystick: :thumbsup:


( ::) )
Title: Re:Vehicle rearming from another Vehicle....
Post by: Sui on 09 Nov 2002, 00:53:45
This SetAmmoCargo 1200000000; This AddMagazineCargo ["Cannon25AP", #]

LOL Tomby... the setammocargo command is like setdammage...

It has a range from 0 to 1. ie:

This setAmmoCargo 1

is full ammo ;)
Title: Re:Vehicle rearming from another Vehicle....
Post by: Tomb on 11 Nov 2002, 01:10:55


what... what is it now?!  ::)

you must've been taking my pay check for being the SetAmmoSpell, sui.
I have no better way to explain yer weird misunderstanding!  :)


( :beat: )

Title: Re:Vehicle rearming from another Vehicle....
Post by: aggressor35 on 11 Nov 2002, 05:23:53
thanks for the replies, but i was still alittle confused...What did work was --- this addmagazinecargo ["Cannon25HE"]; this addmagazinecargo ["MachineGun7_6]......i still cant get the tow's to load. i had both---this addmagazinecargo ["HellfireLauncherM2A2",6] --- this addmagazinecargo ["HellfireLauncherM2A2"]....so if you could help with the tow missles i would appreciate it..thanks
Title: Re:Vehicle rearming from another Vehicle....
Post by: Tomb on 11 Nov 2002, 21:22:37
Confused  ??? naaah, can't happen  ::) ;D

To my knowledge, the ammoName is "HellFireLauncherM2A2", and the
correct INIT-add-ammo spell should therefore be :

This AddMagazineCargo ["HellFireLauncherM2A2", 1]

...to add one load of hellfire's.

 ??? Dunno what could of went wrong there, matey?! ...a tiny misspelling somewhere?
Or maybe the truck is all filled up (never heard of that, though) ??!

try it again!  :thumbsup: