Lua GetName

From ArcEmu-Wiki
Jump to: navigation, search
+/-
Main Page        LuaArcEmu Website     ArcEmu Forum     Bug Tracker


Description

Returns the name of a unit or gameobject.

Example

 function Someone_OnEnterCombat(pUnit, Event)
     msg = string.format("My name is %s and i will kill you!", pUnit:GetName())
     pUnit:SendChatMessage(11,0,msg)
 end
 
 RegisterEvent(XX, 0, "Someone_OnEnterCombat")
Personal tools