View Single Post
08/15/15, 07:02 PM   #14
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Unless I misunderstand what you meant:
Originally Posted by Garkin View Post
identifier (string) - unique identifier, you can use for example name of your addon or some kind of description. If you register the same identifier again, it will overwrite previous function call.
It does not overwrite the previously registered update.

If you try to register it twice (without unregistering):
Lua Code:
  1. EVENT_MANAGER:RegisterForUpdate("DurabilityWarner", 5000, OnUpdate)
  2. EVENT_MANAGER:RegisterForUpdate("DurabilityWarner", 1000, SomeOtherUpdate)
It will still call OnUpdate, every 5000 ms. The second register does nothing.
  Reply With Quote