API:UnitGUID

Returns a globally unique identifier for a specific unit. This is useful when you need to identify a target by something other than just its name (because mobs frequently share the same names).

id = UnitGUID(unit)

Arguments

 * unit -
 * String - UnitId (e.g. "target")

Returns

 * id
 * Number - the globally unique identifier number of the unit