OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: gambla on 21 Aug 2008, 19:40:33

Title: remove / addweapon, magazines ?
Post by: gambla on 21 Aug 2008, 19:40:33
Hi,
i've searched for a while now but didn't find a solution. Whatever i add to the initfield, there's always a cfg.weapons error. Whta i though that worked before,
doesn't do anymore:

Removeallweapons this; "Playername" addmagazine "m9sd"; "Playername" addweapon "m9sd"

What do wrong ?

thanks for help ! :)
Title: Re: remove / addweapon, magazines ?
Post by: Mr.Peanut on 21 Aug 2008, 20:01:32
The magazine class name is "15Rnd_9x19_M9SD". You can find this information in the COMREF on this page (http://www.ofpec.com/COMREF/armaweapons.php#west_firearms)
The error comes from giving a nonexistent magazine.
Title: Re: remove / addweapon, magazines ?
Post by: gambla on 21 Aug 2008, 20:26:12
 :banghead:

Thank you, i just looked in the wrong column "muzzle classnames" on "ArmA Weapons - Bohemia Interactive Community"...