Thread Tools Display Modes
10/20/22, 01:17 AM   #1
Zand3rs
AddOn Author - Click to view addons
Join Date: Apr 2021
Posts: 5
Sprint functions.

Hello, trying to figure out how to disable sprint during certain actions in game.
one example would be disabling sprint while holding block

Does anyone know a way to do this ? Cant find any information.
Thank you!

Last edited by Zand3rs : 10/20/22 at 01:30 AM.
  Reply With Quote
10/20/22, 02:01 AM   #2
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
Originally Posted by Zand3rs View Post
Hello, trying to figure out how to disable sprint during certain actions in game.
one example would be disabling sprint while holding block

Does anyone know a way to do this ? Cant find any information.
Thank you!
I don't know if we can hotswap, or disable/enable keybinds on the fly and we probably cannot, but to me that would be the easiest way.
  Reply With Quote
10/20/22, 05:15 AM   #3
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
The function for sprinting is private, so it's not possible and not something you should attempt. Even if you were to find a way, it's not something you should do, as it may require them to limit APIs in ways that could break other, unrelated addons. See the "Changing Gameplay Mechanics" section on this wiki page.
  Reply With Quote
10/20/22, 11:04 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,976
Originally Posted by Zand3rs View Post
Hello, trying to figure out how to disable sprint during certain actions in game.
one example would be disabling sprint while holding block

Does anyone know a way to do this ? Cant find any information.
Thank you!
If you block, why should you press the sprint key at all then, just do not hit it

Not sure what keys you use, mine are right mouse = block and Shift = sprint.
I do not hit or come near Shift if I block.

Addons cannot solve all situations, else they would be able to create fully automated bots!
  Reply With Quote
10/20/22, 11:30 AM   #5
Zand3rs
AddOn Author - Click to view addons
Join Date: Apr 2021
Posts: 5
Originally Posted by sirinsidiator View Post
The function for sprinting is private, so it's not possible and not something you should attempt. Even if you were to find a way, it's not something you should do, as it may require them to limit APIs in ways that could break other, unrelated addons. See the "Changing Gameplay Mechanics" section on this wiki page.
Thank you for clarifying.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Sprint functions.


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