Welcome, Guest
to this wiki where you can help improve the wiki pages by editing them.


      This functions returns the ID of the unit defined by the object editor, this code is an integer value expressed in Hexadecimal Characters, usually in a form of a word of 4 letters.


      Code: jass
      1. function Test takes nothing returns integer
      2.    local unit u = CreateUnit( Player(0), 'hfoo', GetRectCenterX(someRect), GetRectCenterY(someRect), bj_UNIT_FACING )
      3.    local integer v = GetUnitTypeId(u) // it will return 'hfoo'
      4.    return v
      5. endfunction

      Vivir - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!! - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)