API RegisterEvent

From Vendetta Lua
Revision as of 05:56, 17 February 2009 by Chefkoch (Talk | contribs)

Jump to: navigation, 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 to register with event
eventtype eventtype
Example:
see Event Intro