Thread Tools Display Modes
Prev Previous Post   Next Post Next
03/22/23, 12:11 PM   #1
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 244
Question EVENT_ZONE_CHANGED or UPDATE assistance

I have a few questions regarding the EVENT_ZONE_UPDATE event.

Im registering it when accepting the queue entering cyrodiil with the following and everything looks ok off the start:

Code:
EVENT_MANAGER:RegisterForEvent("MyAddon", EVENT_ZONE_UPDATE, MyAddon.QueueHourGlass)

But... upon entering cyrodiil it doesnt appear the "MyAddon.QueueHourGlass" function listed below was fired. It did once randomly but have bene unable to reproduce it again.

Code:
EVENT_MANAGER:UnregisterForEvent("MyAddon", EVENT_ZONE_UPDATE)

Is there a delay required before running it? The fact or worked once randomly suggests a timing thing to me. I also tried the EVENT_ZONE_CHANGED actually 1st and that was the one that worked once randomly.

*EDIT*
Nevermind think i found it with On_player_activate from another post but if anyone else has any oother suggestions to avoid on_player_update im interested. I'd prefer to use that function as little as possible for performance reasons.

Last edited by sinnereso : 03/22/23 at 12:45 PM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » EVENT_ZONE_CHANGED or UPDATE assistance

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