Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Weapon name
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
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
Logged
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
»
Logged
StonedSoldier
Guest
Re:Weapon name
«
Reply #2 on:
20 Mar 2005, 02:39:42 »
didnt think it would be possible, thankx for the confirmation
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Weapon name
Top of page