Home   Help Search Login Register  

Author Topic: Weapon name  (Read 508 times)

0 Members and 1 Guest are viewing this topic.

chrishn2003

  • Guest
Weapon name
« on: 03 Aug 2005, 18:47:31 »
Is it possible to read a units weapon name somewhere. I've downloaded an add-on (Russian artillery 2S19), but there is no readme or anything telling the name of the gun. I need it in order to make my scripts work. Can it be read from the .pbo file maybee?

Offline 456820

  • Contributing Member
  • **
Re:Weapon name
« Reply #1 on: 03 Aug 2005, 20:28:15 »
try
hint format ["%1 this is the weapon",primaryweapon player]
im not sure that will work but i think its along thos lines just put that in the players init field
also if the player doesnt have the weapon you want the name of just change the word player from the above sample to the name of the unit

hope that helps syntax is not guranteed
infact ill have a look in the comref for ya
if above doesnt work try

hint format ["%1 this is the weapon",weapons player]
that will return every weapon the player has including secondary and pistols also satchel chargs etc etc
hope it helps

chrishn2003

  • Guest
Re:Weapon name
« Reply #2 on: 03 Aug 2005, 22:36:39 »
Thanks that helped alot.