API RegisterEvent: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
No edit summary |
|||
Line 7: | Line 7: | ||
<br> | <br> | ||
'''Arguments:'''<br> | '''Arguments:'''<br> | ||
''eventhandler'' object to register with event<br> | ''eventhandler'' object or function to register with event<br> | ||
''eventtype'' [[eventtype]] | ''eventtype'' [[eventtype]] | ||
<br> | <br> |
Latest revision as of 14:57, 17 February 2009
RegisterEvent
Definition:
RegisterEvent(object eventhandler, string eventtype) -> nil
Description:
Hook up object to event. The object is a function or a table with a method called OnEvent or the name of the event. See Event Intro
Arguments:
eventhandler object or function to register with event
eventtype eventtype
Example:
see Event Intro