ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Tutorials & Other Helpful Info (https://www.esoui.com/forums/forumdisplay.php?f=172)
-   -   Interactable event (https://www.esoui.com/forums/showthread.php?t=8231)

Toniopixy 01/04/19 03:09 PM

Interactable event
 
Hi,

Is there an event that trigger when you encounter something/someone interactable ? I've found EVENT_CLIENT_INTERACT_RESULT but it trigger only if i interact with it. I'm starting to think that the event i want doesn't exist... If it's the case is there a reason ? Or i can add a request on the forum and pray that Zenimax add it ?

Baertram 01/04/19 03:14 PM

What do you try to achieve?
An event fired each time you look at something that is interactable might flood the server.

But there are API functions to check what your crosshair is above/looking at already. Some addons use this method to identify items or NPCs I think.

Toniopixy 01/04/19 03:18 PM

I'm trying to change the reticle according to the interatable target. I tried using EVENT_RETICLE_TARGET_CHANGED but it doesn't trigger on doors or fishing holes. And it trigger even if the target is at a distance where it's not interactable.

Rhyono 01/04/19 04:07 PM

Might not contain the event you're looking for, but may help you eliminate what will/won't work for you:

https://www.esoui.com/downloads/info...oInteract.html

Toniopixy 01/04/19 04:20 PM

Thank you Rhyono ! I found exactly what i wanted in this addon.

For the peoples that needs the same "event", i use
Lua Code:
  1. ZO_PreHook(RETICLE, "TryHandlingInteraction", onTargetInteractable)
and it trigger my function onTargetInteractable when i can interact with something. That's exactly what i wanted ! Thank you !


All times are GMT -6. The time now is 07:50 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI