Trigger that retrieves a unit's name?

Rainther

I guess I should write something of value here...
Reaction score
61
I'm not sure, but I'd imagine it to be linked to getUnitType(Unit).

That is firstly retrieve the unittype then convert it to String somehow.
 

Dave312

Censored for your safe viewing
Reaction score
269
Wouldn't that return the raw name of the unit? I imagine you should be able to use the catalog function to do it?
 

Exfyre

hmm...
Reaction score
60
that does only return the id. for some reason, the only way to do it is to use a variable of type 'Text', which has a function for it.
 

s3rius

Linux is only free if your time is worthless.
Reaction score
130
that does only return the id. for some reason, the only way to do it is to use a variable of type 'Text', which has a function for it.

You can't convert it to a string because unit names can be localized. When you use the Name To Text function it'll actually return the localized name for every player - which makes it a bit awkward since it mashes words from different languages into your own texts :/
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top