Player Interaction Hook
FISHING_MANAGER.StartInteraction can be used to hook into environment interactions (by default the interactions that begin with the E key). Is there a similar thing to hook into player interactions? These interactions begin with the F key (again the default).
Vaddi |
Could be this one:
https://github.com/esoui/esoui/blob/...ayer.lua#L1981 PLAYER_TO_PLAYER is the global and the function would e.g. be: https://github.com/esoui/esoui/blob/...ayer.lua#L1850 ShowPlayerInteractMenu(isIgnored) To get the target's character and displayname you can use: Lua Code:
But PLEASE: Do NOT override this function but just use a ZO_PreHook or SecurePostHook (called after original code then) instead. If you want to suppress the menu to show a ZO_PreHook could be used, do your checks and if the menu should not be shown return true then so the original func won't be called anymore. |
Yikes! I thought I replied to this a week ago. I guess I didn't hit the send button.
Baertram, thanks so much for your response. I ended up using a simpler solution that didn't require this hook. But I learned a lot from this. Thanks again. |
All times are GMT -6. The time now is 08:18 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI