OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Chammy on 04 Apr 2007, 23:21:29
-
I was wondering, since there are a ton more addons available , like the FAL, G3, G36, Styer, and countless other addons, how do we call the up or try them out in the editor when they are not even listed in the editor?
-
You can find out the Class-Name of a unit, magazine or Weapon by typing this in the init field of the unit:
Â
For Unit: Â Hint format["%1",typeOf(this)]
For Magazine: Hint format ["%1",magazines this]
For Weapon: Hint format ["%1",weapons this]
Bohemia lists the weapons available.....
http://community.bistudio.com/wiki/Armed_Assault:_Weapons
You can implement them via the unit's init field:
removeallweapons this; this addmagazine "15Rnd_9x19_M9";; this addmagazine "15Rnd_9x19_M9"; this addweapon "M9";
Or via a script if you want to load units or created units with your custie weapon config.
Place this in the unit's init:
[] exec "Rearm.sqs"
And the script:
_unit = _this select 0
removeallweapons _unit ;
_unit addmagazine "30Rnd_545x39_AK";
_unit addmagazine "30Rnd_545x39_AK";
_unit addmagazine "30Rnd_545x39_AK";
_unit addweapon "ak74";
_unit addmagazine "8Rnd_9x18_Makarov";
_unit addmagazine "8Rnd_9x18_Makarov";
_unit addmagazine "8Rnd_9x18_Makarov";
_unit addweapon "Makarov";
_unit selectweapon "Makarov";
exit
Keep in mind you need to add the magazine info before the weapon info or you end up with no mag in the chamber and the unit has to reload before firing.
There's much fun to be had adding the wrong weapons to units and vehicles...WW3!!! :D
(I hope this was your question? lol....as always - dunno if it's the right way - but it works for meso :P)
-
FAL, G3, G36, Styer
These weapons were available in OFP, they are not available in ArmA........yet. :D
Planck
-
Most, if not all, of those weapons can be found in VILAS addons, if you really need them.
-
ArmA Weapons list can be found on this website in a better more clearer form : In The COMREF (http://www.ofpec.com/COMREF/armaweapons.php)