ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Event when you or the enemy gets hitten? (https://www.esoui.com/forums/showthread.php?t=1486)

ZunaSW 05/13/14 08:10 AM

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!

Harven 05/13/14 08:17 AM

Check out here: http://wiki.esoui.com/Events#Combat. I Think you're interested in EVENT_COMBAT_EVENT.

ZunaSW 05/13/14 08:29 AM

Quote:

Originally Posted by Harven (Post 7654)
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 :)

Harven 05/13/14 08:37 AM

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)

ZunaSW 05/13/14 08:44 AM

Quote:

Originally Posted by Harven (Post 7657)
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!

simosf 07/04/14 02:22 AM

Quote:

Originally Posted by Harven (Post 7657)
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 ?

merlight 07/04/14 08:10 AM

Quote:

Originally Posted by simosf (Post 10139)
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.


All times are GMT -6. The time now is 01:28 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI