View Single Post
03/07/18, 02:06 PM   #5
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 409
Originally Posted by Shinni View Post
You can just ZO_PreHook ActionButtonDown to block an ability from being cast. That way you can change the block state even infight without changing keybinds.

ZO_PreHook("ActionButtonDown", function(slot) return slot == blockedSlot end)

edit: apparently abilities are cast on button release, not press. So hook ActionButtonUp instead.
Wouldn't that cause 'attempt to use a private function' errors?
  Reply With Quote