Thread Tools Display Modes
05/13/14, 08:10 AM   #1
ZunaSW
Join Date: Mar 2014
Posts: 37
Event when you or the enemy gets hitten?

Hi, sorry my english.
Is there any event like OnHit or something like that? I mean, to make something when you get hitten or the enemy gets hitten. I can't find it in the wiki.
Thanks!
  Reply With Quote
05/13/14, 08:17 AM   #2
Harven
 
Harven's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 135
Check out here: http://wiki.esoui.com/Events#Combat. I Think you're interested in EVENT_COMBAT_EVENT.
  Reply With Quote
05/13/14, 08:29 AM   #3
ZunaSW
Join Date: Mar 2014
Posts: 37
Originally Posted by Harven View Post
Check out here: http://wiki.esoui.com/Events#Combat. I Think you're interested in EVENT_COMBAT_EVENT.
Yeah, I saw it, but I think it is when you enter in combat, not when you get hitten, or I'm wrong?
What about EVENT_IMPACTFUL_HIT? What does that?
Thanks for answering
  Reply With Quote
05/13/14, 08:37 AM   #4
Harven
 
Harven's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 135
When you enter the combat another event is triggered: EVENT_PLAYER_COMBAT_STATE.
EVENT_COMBAT_EVENT is the right one for you.
Look at the parameters: (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)
  Reply With Quote
05/13/14, 08:44 AM   #5
ZunaSW
Join Date: Mar 2014
Posts: 37
Originally Posted by Harven View Post
When you enter the combat another event is triggered: EVENT_PLAYER_COMBAT_STATE.
EVENT_COMBAT_EVENT is the right one for you.
Look at the parameters: (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)
Ahh!! Ok, I understand now, thank you!
  Reply With Quote
07/04/14, 02:22 AM   #6
simosf
Join Date: Jul 2014
Posts: 5
Originally Posted by Harven View Post
When you enter the combat another event is triggered: EVENT_PLAYER_COMBAT_STATE.
EVENT_COMBAT_EVENT is the right one for you.
Look at the parameters: (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)

Hello - any idea why the sourceName is always yourself and never the enemy mob ?
  Reply With Quote
07/04/14, 08:10 AM   #7
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by simosf View Post
Hello - any idea why the sourceName is always yourself and never the enemy mob ?
Source name and ability were removed pre-launch, I mean replaced with empty string for sources other than yourself. Now you only get info that something hit (edit: or healed) you and for how much dmg, but not which ability/player/mob.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Event when you or the enemy gets hitten?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off