WD2 ScriptHook: Script Table

From Nomad DB
Revision as of 12:41, 15 April 2020 by Jan (talk | contribs) (Created page with "Every Script has its own ''Script Table''. It returns a Lua table that can be used for two things: # Storing variables for the Script # Callback / E...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Every Script has its own Script Table. It returns a Lua table that can be used for two things:

  1. Storing variables for the Script
  2. Callback / Event Handlers

Using the Event Handlers is also the only way to properly unregister event listeners from the Game's event system.