OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 24Gamer on 04 Jul 2004, 20:24:49

Title: SetAmmo
Post by: 24Gamer on 04 Jul 2004, 20:24:49
Hi i was wondering if anyone knew if or how to set the amount of ammo of a vehicle, like in editor. i.e. i want to make the OH58 have 5 FFAR's instead of 14 (using scripts).
Title: Re:SetAmmo
Post by: Acid on 05 Jul 2004, 10:01:10
You can't. The only way you can set the amount of ammo a unit has is by using the Ammo slider in the units properties, but that sets the initial amount of ammo for the unit. You can't change it later in the game like you can change the amount of fuel a unit has. I seriously think BIS should add a setAmmo command into the next patch for OFP.
Title: Re:SetAmmo
Post by: 24Gamer on 05 Jul 2004, 15:09:07
damn that sucks, cuz im trying to set the amount of ammo after a createvehicle :(

anyway to add the ammo manually? like one FFAR at a time?
Title: Re:SetAmmo
Post by: 24Gamer on 05 Jul 2004, 15:20:43
i suppose you could create lots of them off the map and then use setpos, but they could always run out and it might cause some slow down.
Title: Re:SetAmmo
Post by: AnarCHy on 05 Jul 2004, 15:22:10
@ post above mine

......yes......

just say - this addmagazine "FFAR" - but you would have to check the real ammo name for FFAR's or it won't work.
Title: Re:SetAmmo
Post by: 24Gamer on 05 Jul 2004, 18:26:27
Temp addmagazine "ZuniLauncherOH" (Temp = OH58)
this commands adds the FFAR's to the OH58 but it adds all of the FFAR's :(
Title: Re:SetAmmo
Post by: 24Gamer on 05 Jul 2004, 18:28:16
anyway to create a vehicle without ammo that can rearm
cuz if you use the command Temp removemagazine "Zuni-etc." it wont let me rearm :-/
Title: Re:SetAmmo
Post by: 24Gamer on 05 Jul 2004, 18:29:17
i cant believe i can only create a vehicle will full ammo or without a weapon  >:(
Title: Re:SetAmmo
Post by: macguba on 05 Jul 2004, 18:45:50
Create it in the mission editor with the amount of ammo you want.   Place it on an outlying island and setPos it in at the appropriate moment.

OFP is an idiosyncratic mistress.    The solution to this is simple:   all you have to do is buy BIS and direct the staff to stop working on OFP2 and work solely on rationalising the scripting language of OFP1.     :P
Title: Re:SetAmmo
Post by: 24Gamer on 05 Jul 2004, 19:33:53
LMAO  :D

i think BIS i spending more time on OFP for Xbox :(