Thread Tools Display Modes
07/28/17, 02:37 AM   #1
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 103
Is it possible to unregister an event registered on a timer (OnUpdate)?

EVENT_MANAGER:RegisterForUpdate(moduleName, 5000, CA.PrintBufferedXP )

I see a lot of addons register this to a function called OnUpdate, and it ticks at that interval after being registered. Is there some way to unregister this event? I don't know how to reference it to stop it since it has a number in place of an event name.

Alternatively, I need to find some way to buffer without using zo_callLater.
  Reply With Quote
07/28/17, 02:42 AM   #2
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
EVENT_MANAGER:UnregisterForUpdate(moduleNarme)
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Is it possible to unregister an event registered on a timer (OnUpdate)?

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