[General] Unit to Unit Type

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,342
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