OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Chammy on 04 Apr 2007, 23:21:29

Title: How do we use every addon available in editor?
Post 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?
Title: Re: How do we use every addon available in editor?
Post by: D_P_ on 05 Apr 2007, 00:24:02
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:
Code: [Select]
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:
Code: [Select]
[] exec "Rearm.sqs"
And the script:
Code: [Select]
_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)
Title: Re: How do we use every addon available in editor?
Post by: Planck on 05 Apr 2007, 03:45:55
Quote
FAL, G3, G36, Styer

These weapons were available in OFP, they are not available in ArmA........yet.    :D


Planck
Title: Re: How do we use every addon available in editor?
Post by: satexas69 on 05 Apr 2007, 14:32:52
Most, if not all, of those weapons can be found in VILAS addons, if you really need them.
Title: Re: How do we use every addon available in editor?
Post by: JasonO on 07 Apr 2007, 21:04:30
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)