UnitId2String

Parameters
unitId integer
bug

Always returns null after the game is loaded/if the game is a replay.

bug

Do not use this in a global initialisation (on map init) as it returns null there.

comment

Example (Lua): UnitId2String( FourCC("hfoo") ) --> "footman" (internal name, not localized){.lua}

note

See GetObjectName if you need to retrieve a unit's localized pretty name by the type ID.

patch

1.00

return type
string
Source code
constant native UnitId2String               takes integer unitId            returns string
Source
common.j
wc3modding.com
UnitId2String