Hideconstructorenum designating the type of the current entity.
local loc = osrs.Engine.Decoders.decodeLocType(osrs.gamevals.loctypes.poh_portal_teak_empty)
if(loc:getEntityType() == osrs.TypecodeEntityType.LOC) then
osrs.print("Found type LOC")
end
local lesserdemon = osrs.Engine.Decoders.decodeNpcType(osrs.gamevals.npctypes.lesser_demon)
if(lesserdemon:getEntityType() == osrs.TypecodeEntityType.NPC) then
osrs.print("Found type NPC")
end
Gets the id of the current datatype. Data types will return their type ID, which will match the id in gamevals.
id of the current entity.
local loc = osrs.Engine.Decoders.decodeLocType(osrs.gamevals.loctypes.poh_portal_teak_empty)
if(loc:getEntityType() == osrs.TypecodeEntityType.LOC) then
osrs.print("Found type LOC")
end
local lesserdemon = osrs.Engine.Decoders.decodeNpcType(osrs.gamevals.npctypes.lesser_demon)
if(lesserdemon:getEntityType() == osrs.TypecodeEntityType.NPC) then
osrs.print("Found type NPC")
end
Returns the type of the current entity.