Lua GetGUID

From ArcEmu-Wiki
Jump to: navigation, search

Syntax

pUnit:GetGUID([target])


Description

Returns the GUID for the selected target and returns a UInt64 value. If target is empty it returns the GUID of the player.


Usage/Example

This example wouldn't normally be used in a Lua script, this only provides as it is, an example.

function Get_GUID(pUnit, Event)
   local target = pUnit:GetMainTank
   return(pUnit:GetGUID(target))
end
Personal tools