GetObjectName

Parameters
objectId integer
async
This function is asynchronous. The values it returns are not guaranteed to be the same for each player. If you attempt to use it in an synchronous manner it may cause a desync.
bug

Do not use this in a global initialisation as it crashes the game there.

comment

Looks up the "name" field for any object (unit, item, ability)

pure
This function is pure. For the same values passed to it, it will always return the same value.
return type
string
Source code
constant native GetObjectName               takes integer objectId          returns string
Source
common.j
wc3modding.com
GetObjectName