Thread Tools Display Modes
04/07/14, 03:28 AM   #1
vapakule
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 15
Red face 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??

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.
  Reply With Quote
04/07/14, 05:13 AM   #2
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
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.
  Reply With Quote
04/07/14, 10:40 AM   #3
vapakule
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 15
Thumbs up

Originally Posted by Xrystal View Post
...since the API change.
Thanks for @events , is there any API change notes ? )
  Reply With Quote
04/07/14, 10:56 AM   #4
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
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.
  Reply With Quote
04/07/14, 02:00 PM   #5
vapakule
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 15
Originally Posted by Xrystal View Post
...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 ?
  Reply With Quote
04/07/14, 02:07 PM   #6
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
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.
  Reply With Quote
04/07/14, 02:39 PM   #7
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
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.
  Reply With Quote
04/09/14, 01:15 AM   #8
vapakule
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 15
Cool

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
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » How to track heavy or single attack state.

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