API:UnitName

Get the name of a unit.

Parameter

 * unit
 * String - the UnitId; query to unit

Returns

 * name
 * String - the name of the specified unit.

Example
Print your targets name to the Say channel.