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
GetObjectName( FourCC("hfoo") ) --> "Footman"
See: UnitId2String.
UnitId2String
Do not use this in a global initialisation (on map init) as it crashes the game there.
Generated using TypeDoc
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