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

    Parameters

    • unitId: number

    Returns string

    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.

Generated using TypeDoc