LuaBridge:Methods:Object:GetEntry

From ArcEmu-Wiki
Jump to: navigation, search

Returns the identification number of the object. This number is used to distinguish an object from other objects of the same class.
(ie. A gameobject and a creature may share an entry id, but a creature and another creature cannot share.(Unless they are the same creature) )

Usage:

local function OnSpawn(_self)
       local entry = _self:GetEntry()
       print(tostring(_self).." has an entry of "..entry)
end


Back to Methods

Personal tools