Originally Posted by Edda
While downloading this insanely big update...
Did anyone find documentation on :
Lua Code:
EVENT_COMBAT_EVENT ( integer result, bool isError, string abilityName, integer abilityGraphic, integer abilityActionSlotType, string sourceName, integer sourceType, string targetName, integer targetType, integer hitValue, integer powerType, integer damageType, bool log )
I want to check if player is fighting either a mob/elite/whatever or another player. I think what I need to check is integer targetType but no idea what values this var can hold.
I think maybe I could use EVENT_RETICLE_TARGET_CHANGED but nothing about it as well in the wiki.
|
Use GetUnitType("reticleover") to get info about target unit type.
Unit Types:
COMBAT_UNIT_TYPE_GROUP
COMBAT_UNIT_TYPE_NONE
COMBAT_UNIT_TYPE_OTHER
COMBAT_UNIT_TYPE_PLAYER
COMBAT_UNIT_TYPE_PLAYER_PET