UnitId2String

Parameters
unitId integer
comment

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

note

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

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.

patch

1.00

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