OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: SaintPier on 07 Jul 2012, 12:43:23

Title: Can't find weapon
Post by: SaintPier on 07 Jul 2012, 12:43:23
Hello all you Armed Assault addicts  :D

I am writing a mission and want to add a weapon to my players.
This normally is easy with "this addweapon ....."
The weapon i want to add is the Mk12 SPR.
But i can not find the name for it, to enter in the init field.
When i enter "Mk12 SPR" i get the error message "No Entry bin\config.bin/CfgWeapons.Mk12 SPR"
Where can i find the name for that weapon?

Thanks,
Peter
Title: Re: Can't find weapon
Post by: Gruntage on 07 Jul 2012, 22:44:21
The name of the weapon is 'M4SPR'

You can find the weapon and magazine names here:

http://www.ofpec.com/COMREF/index.php?action=read&id=68
Title: Re: Can't find weapon
Post by: SaintPier on 08 Jul 2012, 17:17:35
Hi Gruntage,

Thanks a lot.
Very strange that the names are different.
M4 = Mk12.  hmmm
Is there a reason for the difference in the names?

greets,
SaintPier (Peter)
Title: Re: Can't find weapon
Post by: Worldeater on 09 Jul 2012, 23:37:36
These names are taken from the one of the many config files that are shipped with ARMA2. So if there's a deeper reason behind the different names we don't know it.   :dunno:

Btw, you can extract all these configs with this script (http://www.ofpec.com/forum/index.php?topic=35236.0).
Title: Re: Can't find weapon
Post by: SaintPier on 15 Jul 2012, 14:04:51
Great.
Thanks.