Thread Tools Display Modes
01/04/19, 03:09 PM   #1
Toniopixy
 
Toniopixy's Avatar
Join Date: Dec 2018
Posts: 3
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 ?
  Reply With Quote
01/04/19, 03:14 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
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.
  Reply With Quote
01/04/19, 03:18 PM   #3
Toniopixy
 
Toniopixy's Avatar
Join Date: Dec 2018
Posts: 3
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.
  Reply With Quote
01/04/19, 04:07 PM   #4
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
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
  Reply With Quote
01/04/19, 04:20 PM   #5
Toniopixy
 
Toniopixy's Avatar
Join Date: Dec 2018
Posts: 3
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 !

Last edited by Toniopixy : 01/04/19 at 05:32 PM.
  Reply With Quote

ESOUI » Developer Discussions » Tutorials & Other Helpful Info » Interactable event

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