- 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?
Thanks!
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!