HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Upgrade -> string

11-04-2007, 12:47 PM#1
cohadar
I want to display a string to all players when someone researches some upgrade, but I cannot find a way to get an upgrade name as string?
11-04-2007, 01:43 PM#2
Toadcop
hmmm dunno ^^ maybe ?
Collapse JASS:
// Looks up the "name" field for any object (unit, item, ability)
constant native GetObjectName               takes integer objectId          returns string
11-04-2007, 03:37 PM#3
cohadar
Quote:
Originally Posted by Toadcop
hmmm dunno ^^ maybe ?
Collapse JASS:
// Looks up the "name" field for any object (unit, item, ability)
constant native GetObjectName               takes integer objectId          returns string

It worked, tnx