LuaBridge:Methods:Object:IsPet

From ArcEmu-Wiki
Jump to: navigation, search

Returns true if the object is a pet.

Usage:

local function OnHello( this, plr)
 local pet = plr:GetSummon()
 if(pet ~= nil) then
  assert(pet:IsPet() )
 end
end
 
RegisterCreatureGossip( <arbitrary creature id>, 1, OnHello)

Back to Methods

Personal tools