Home   Help Search Login Register  

Author Topic: Weapon name  (Read 486 times)

0 Members and 2 Guests are viewing this topic.

StonedSoldier

  • Guest
Weapon name
« on: 20 Mar 2005, 02:33:25 »
i was wondering if there is a way to return the in-game name of a weapon not the Cfg entry name.

eg. instead of retuning M16GrenadeLaunder i want to return M16 + M203

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Weapon name
« Reply #1 on: 20 Mar 2005, 02:35:21 »
Don't think so, but you could allways do a if check and then assign the correct weapon to a string. Like this:

? (weapon == "M16GrenadeLaunder") : gun = "M16 + M203"

:beat: *Gets Shot* :beat:

EDIT: Changed slight syntax error. :)
« Last Edit: 20 Mar 2005, 12:44:40 by dmakatra »

StonedSoldier

  • Guest
Re:Weapon name
« Reply #2 on: 20 Mar 2005, 02:39:42 »
didnt think it would be possible, thankx for the confirmation