GetUnitName

Parameters
whichUnit unit
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.
return type
string
Source code
constant native GetUnitName takes unit whichUnit returns string
Source
unit.j
wc3modding.com
GetUnitName