LuaBridge:Methods:Object:IsPlayer

From ArcEmu-Wiki
Jump to: navigation, search

Returns true of the object is a player.

Usage:

local function OnCombat( _self, _, hostile)
 if(hostile:IsPlayer() ) then
  print(tostring(_self).." has been attacked by hostile player :"..TO_PLAYER(hostile):GetName() )
 end
end

Back to Methods

Personal tools