WoWInterface - View Single Post - [LUA] Questions about events and the execution order
View Single Post
12-08-16, 06:12 PM   #2
A Pyroguard Emberseer
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,057
Secure and insecure are terms for the taint system and could cause some confusion if used in this example. Another side note, UnitAura() can only query units with a valid UnitID, so the limitation of UNIT_AURA is the same as what you can examine with UnitAura().
  1. Using data functions outside of their respective events is not recommended because of the random nature of when events fire. Doing so produces inherent instabilities in your code that may or may not show up in your own testing.
  2. Events that aren't grouped in a series can fire at any time in any random order. Any observed firing order shouldn't be trusted as it's not guaranteed to stay the same whether it be between different users, builds, or even sessions.
  3. WoW runs the entire UI on a single thread, meaning only one section of code can be run at a time. There are times when it seems to bend this rule when you run functions that result in immediately firing an event, the game deals with that event before returning to your code.
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 12-08-16 at 06:16 PM.
  Reply With Quote