API RegisterEvent

From Vendetta Lua
Revision as of 14:57, 17 February 2009 by Mick (talk | contribs) (→‎RegisterEvent)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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