OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: sharkattack on 22 Jul 2010, 16:59:51

Title: limited vehicle ammo
Post by: sharkattack on 22 Jul 2010, 16:59:51
Hi lads
A real noob topic but this has me beaten, not sure how to use the  removeMagazinesTurret command and add a custom amount of ammo to vehicle. How can i limit the amount of MK19 shells in each SOV (OA)  to say 15 rounds only ?

best wishes  shark-attack


Title: Re: limited vehicle ammo
Post by: nominesine on 23 Jul 2010, 14:21:46
Code: [Select]
_mySOV removeMagazineTurret ["nameofammo",[*]]
* is an index of all turrets.
0 Main turret
1 Second turret
2 Et cetera

removeMagazineTurret removes one mag, if I remember correctly. To remove them all: Use removeMagazinesTurret instead
Title: Re: limited vehicle ammo
Post by: Wolfrug on 23 Jul 2010, 17:11:27
Crikey! New OA commands. I was just about to say "impossible!", but apparently not!

Now they need to implement "addweaponturret" and "removeweaponturret" and we're almost set. Sadly I doubt that's going to happen :(

Wolfrug out.
Title: Re: limited vehicle ammo
Post by: sharkattack on 26 Jul 2010, 21:31:50
thanks lads .. nice one

 :good: