OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: StonedSoldier on 20 Mar 2005, 02:33:25

Title: Weapon name
Post by: StonedSoldier 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
Title: Re:Weapon name
Post by: dmakatra 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. :)
Title: Re:Weapon name
Post by: StonedSoldier on 20 Mar 2005, 02:39:42
didnt think it would be possible, thankx for the confirmation