Thread Tools Display Modes
02/02/20, 07:09 PM   #1
ArtOfShred's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 103
[open] Request for funcs: IsUnitBlocking/Sprinting/Mounted & EVENT_X_STATE_CHANGED

With the changes to the way Block and Sprint functionality work there's no longer a buff displayed for when a player or target is blocking, or a combat event when a player is sprinting or mount sprinting.

I'd like to propose a few functions AND/OR events to determine whether a unitTag is blocking and if possible it might be nice to have this expanded to mount & sprint as well. This would match the API functionality available for stealth state changes that is available.

The following events would be needed:
EVENT_BLOCK_STATE_CHANGED(number eventCode, string UnitTag, boolean IsBlocking) 
EVENT_SPRINT_STATE_CHANGED(number eventCode, string UnitTag, boolean IsSprinting)
EVENT_MOUNT_STATE_CHANGED(number eventCode, string UnitTag, boolean IsMounted)
The following functions would be needed:
IsUnitBlocking(string unitTag)
Returns: boolean IsBlocking
IsUnitSprinting(string unitTag)
Returns: boolean IsSprinting
IsUnitMounted(string unitTag)
Returns: boolean IsMounted 
As a side note the functions/events we currently have available are quite limited, as we can only use a function to check if the player is blocking or mounted, or get event updates for when the player mounts or dismounts:
Returns: boolean active
Returns: boolean mounted
EVENT_MOUNTED_STATE_CHANGED (number eventCode, boolean mounted) 
EDIT: I just realized the current IsBlockActive() function seems to return true when the player is holding the block input, not only if they are actively blocking. It returned true while I was holding block while I was stunned. Man... I really hate that the buff effects for these abilities were removed.

Last edited by ArtOfShred : 02/10/20 at 03:50 PM.
  Reply With Quote
07/12/20, 02:21 PM   #2
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 78
I want to second and push this ...
  Reply With Quote
05/04/21, 07:52 PM   #3
Parietic's Avatar
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 5
I would also love this to be added
  Reply With Quote

ESOUI » Developer Discussions » Wish List » [open] Request for funcs: IsUnitBlocking/Sprinting/Mounted & EVENT_X_STATE_CHANGED

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