• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Unit to Unit Type

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,338
Hi,

I'm completely blanking out, but what's the name of the native function that takes a unit and returns an integer value that corresponds to its rawcode/type?

JASS:
native function GetUnitId takes unit whichUnit returns integer
...
endfunction
...
unit u = CreateUnit('hfoo', ...)
GetUnitId(u) == 'hfoo' //returns true

Thanks!
 
Status
Not open for further replies.
Top