Native help

bOb666777

Stand against the ugly world domination face!
Reaction score
117
I would like to know that this native does and what is unitIdString supposed to be:
JASS:
constant native UnitId takes string unitIdString returns integer


Also, is there anywhere I can see what each native does?
 

WolfieeifloW

WEHZ Helper
Reaction score
372
It takes the unit's Id String and gives you an integer :p .
I believe it's the 'nXXX' code of units (that's an integer) .
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
Hm
Is there a function other than using custom value that gives a unique integer value to each unit (not unit type)?
 
Reaction score
341
JASS:
function Unit2Int takes unit u returns integer
    return u
    return 0
endfunction


Or you can use a units custom value (SetUnitUserData), U2I can mess some things up in your map (or so i have heard)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top