EVENT_MANAGER:RegisterForUpdate
Questions about the Event Manager:
Does it matter if you re-register something for update (to change it), without unregistering the old one first? Lua Code:
Does it really matter if you try to UnregisterForUpdate if it isn't registered? Lua Code:
Is there some way to check to see if something is registered with the event manager? Besides creating a variable myself to track whether or not you have "Something" registered for update? |
Doh, I didn't even think about checking it myself like this:
Lua Code:
Only outputs: RegisterTest 1 So I guess you can't reregister it to update it. You have to unregister it & then reregister it. Which also lead me to figuring out it returns true, false if it gets registered or not: Lua Code:
Although other problems also can cause a return of false: Lua Code:
So I guess you can't rely on a return of false to know that something is already registered. I'm still trying to figure out a way to determine if something is already registered or not. |
All times are GMT -6. The time now is 02:15 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI