View Single Post
03/22/23, 12:11 PM   #1
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 245
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