OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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).
-
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.
-
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?
-
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.
-
@ 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.
-
Temp addmagazine "ZuniLauncherOH" (Temp = OH58)
this commands adds the FFAR's to the OH58 but it adds all of the FFAR's :(
-
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 :-/
-
i cant believe i can only create a vehicle will full ammo or without a weapon >:(
-
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
-
LMAO :D
i think BIS i spending more time on OFP for Xbox :(