• Pure Async

    Returns localized value for field "name" for the given object type ID (unit, item, ability). In WorldEdit this is "Text - Name".

    Example (Lua): GetObjectName( FourCC("hfoo") ) --> "Footman"lua

    Parameters

    • objectId: number

    Returns string

    Note

    See: UnitId2String.

    Bug

    Do not use this in a global initialisation (on map init) as it crashes the game there.

Generated using TypeDoc