OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: WhiteTigerUA on 30 Oct 2007, 21:34:04

Title: Quantity of Ammo Added by One Init Command
Post by: WhiteTigerUA on 30 Oct 2007, 21:34:04
Hello people,

How much ammo is added by one this addmagazine "magazine_name" command?

The matter is,if I try to equip a soldier by "addmagazine" init commands,the number of clips or grenades,or any other kind of ammo vary from that number of how many times I entered the "addmagazine" command in the init line.

For example,I have an M4A1 Carbine with M203 grenade launcher.

If I enter 8 (this addmagazine "magazine") and let's say 6 (this addmagazine "grenade") commands in the init,I will get accordingly 7 clips and 1 grenade launcher grenade in the preview.Generally speaking,I can't calculate the proportion between number of addmagazine commands and actual quantity of ammo available in game.

Thanks everybody in advance for making this situation clear.  :)

With best regards.
Title: Re: Quantity of Ammo Added by One Init Command
Post by: bedges on 30 Oct 2007, 21:45:36
have you removed any magazines first?

take a look at this (http://www.ofpec.com/FAQ/faq_weps.php#list).
Title: Re: Quantity of Ammo Added by One Init Command
Post by: WhiteTigerUA on 31 Oct 2007, 08:41:59
Yes,the first command in the init line for each unit is - removeallweapons this.After that I start to gear them up.
Title: Re: Quantity of Ammo Added by One Init Command
Post by: schuler on 31 Oct 2007, 12:47:42
dont you want 1 mag for in the m4, 3mags for carry and 3 203grenades, remember one 203grenade takes up 2 mag slots
Title: Re: Quantity of Ammo Added by One Init Command
Post by: mauksu on 05 Nov 2007, 18:50:16
I think you also need to remove the magazines..
So:
Code: [Select]
RemoveAllWeapons this; RemoveAllMagazines thisThat should work..