ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   How to track heavy or single attack state. (https://www.esoui.com/forums/showthread.php?t=657)

vapakule 04/07/14 03:28 AM

How to track heavy or single attack state.
 
Hello,every one.

I wonder how to track attack state, when hold attack key and when its ready to execute heavy attack. Is there any way to handle this?? :rolleyes:

This can help in some cases when it is necessary sustain the attack for some time and show the state of it on the display as percentage bar.

Xrystal 04/07/14 05:13 AM

I spotted a function yesterday that may be for this purpose. Ah, here we go.

These two events :

EVENT_LOCAL_PLAYER_CHARGEUP_BEGIN
EVENT_LOCAL_PLAYER_CHARGEUP_COMPLETE

They didn't have private or protected against it but then I also don't know if things have been removed since the API change.

vapakule 04/07/14 10:40 AM

Quote:

Originally Posted by Xrystal (Post 3072)
...since the API change.

Thanks for @events , is there any API change notes ? )

Xrystal 04/07/14 10:56 AM

Nope, I was never a part of the API beta group so all I know is what was posted in a thread elsewhere on this site.

vapakule 04/07/14 02:00 PM

Quote:

Originally Posted by Xrystal (Post 3072)
...removed since the API change.

So yeah, you were right, they are removed since this post http://www.reddit.com/r/elderscrolls...ut_any_addons/ :(

any other idea to track Weapon heavy attack ?

Xrystal 04/07/14 02:07 PM

I think the idea is you watch the game :) I can see the heavy attack with a one handed sword but still not quite figured it out with the bow.

Seerah 04/07/14 02:39 PM

If I recall correctly, you can hear when it's ready (the bow string makes a sound as it's being pulled back) and when your arm stops moving, it's back all the way.

vapakule 04/09/14 01:15 AM

Im actually find one solution, tracking Mouse down event. Only think i have to do is add timings to it. Usual timings when heavy attack is fully charged (its about ~1.7sec) , scaling depends on weapon enhancement or another stats. What do you think, can i use static variable as standard period which fires heavy attack ? In this case, I can add the charge indicator attack


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

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