OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
have you removed any magazines first?
take a look at this (http://www.ofpec.com/FAQ/faq_weps.php#list).
-
Yes,the first command in the init line for each unit is - removeallweapons this.After that I start to gear them up.
-
dont you want 1 mag for in the m4, 3mags for carry and 3 203grenades, remember one 203grenade takes up 2 mag slots
-
I think you also need to remove the magazines..
So:
RemoveAllWeapons this; RemoveAllMagazines thisThat should work..