Home   Help Search Login Register  

Author Topic: How can I find out the name of Custom weapons class names are?  (Read 1117 times)

0 Members and 1 Guest are viewing this topic.

Offline dhall99

  • Members
  • *
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

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
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: )
just setpos & forgetpos!

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
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!
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...