LuaBridge Creature GetProto

From ArcEmu-Wiki
Jump to: navigation, search

Description

This function returns a userdata that has a number of keys exposed to the user. You use these keys to get various bits of information about the Creature this method is invoked on. These keys will match the information in creature_proto.

Usage

local pCreatureProto = pCreature:GetProto()
local AverageDamage = ( pCreatureProto.MinDamage + pCreatureProto.MaxDamage ) / 2
Personal tools