View Single Post
06/20/23, 05:36 PM   #7
IsJustaGhost
AddOn Author - Click to view addons
Join Date: May 2020
Posts: 38
As you can see by the grayed out keybind, interaction is disabled
Lua Code:
  1. local registerOnTryHandlingInteraction = LibInteractionHook.RegisterOnTryHandlingInteraction
  2. local wayshrineString = GetString(SI_DEATH_PROMPT_WAYSHRINE):lower()
  3.  
  4. registerOnTryHandlingInteraction("Addon_Name", SI_LIB_IF_GAMECAMERAACTION5, function(action, interactableName, interactionBlocked, isOwned, additionalInteractInfo, context, contextLink, isCriminalInteract, currentFrameTimeSeconds)
  5.     if interactableName:lower():match(wayshrineString) then -- This is in theory
  6.         return true -- to disable it
  7.     end
  8. end)

Here it is also hidden.

Lua Code:
  1. local registerOnTryHandlingInteraction = LibInteractionHook.RegisterOnTryHandlingInteraction
  2. local hideInteraction = LibInteractionHook.HideInteraction
  3. local wayshrineString = GetString(SI_DEATH_PROMPT_WAYSHRINE):lower()
  4.  
  5. registerOnTryHandlingInteraction("Addon_Name", SI_LIB_IF_GAMECAMERAACTION5, function(action, interactableName, interactionBlocked, isOwned, additionalInteractInfo, context, contextLink, isCriminalInteract, currentFrameTimeSeconds)
  6.     if interactableName:lower():match(wayshrineString) then -- This is in theory
  7.         hideInteraction()
  8.         return true -- to disable it
  9.     end
  10. end)

Either one of those could be pasted in a blank addon's lua and it will work. As in, nothing else is needed to be done.
No need to modify INTERACTIVE_WHEEL_MANAGER.StartInteraction

The only other thing that must be done is adding this to the manifest.
## DependsOn: LibInteractionHook>=3

Last edited by IsJustaGhost : 06/20/23 at 05:50 PM.
  Reply With Quote