OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: dhall99 on 31 Mar 2007, 18:01:00
-
Hi ,
I am trying to find out how to add a custom weapon to a soldier,
I can do this using the BIS weapons fine , but I would like to add say Vilas UZI to my soldier , and the equivalent ammo for the gun.
If there was no readme in OFP I used to unpbo the addon and look at the config , but I dont know how to Unpbo ARMA files.
Any Ideas on how to find out this information without a readme file ???
Thanx
dhall99
-
Find out the Class-Name of a unit, magazine or Weapon:
In the init field of the unit type:
For Unit: Hint format["%1",typeOf(this)]
For Magazine: Hint format ["%1",magazines this]
For Weapon: Hint format ["%1",weapons this]
(and the name of the class will be displayed :good: )
-
EDIT: _D_P suggestion is much easier and cleaner than the old script I used to accomplish the same thing. So I am removing my post and attached script file. Ignore this!