API ProcessEvent: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
Darkgrey (talk | contribs)
Mick (talk | contribs)
Line 1: Line 1:
=== ProcessEvent ===
=== ProcessEvent ===
'''Definition:'''
'''Definition:'''
ProcessEvent(string eventtype, data) -> nil
ProcessEvent(string eventtype, ...) -> nil
<br>
<br>
'''Description:'''<br>
'''Description:'''<br>
Processes various events. Trigger a with [[Function_Index#RegisterEvent|RegisterEvent]] defined event
Processes various events. Trigger a with [[Function_Index#RegisterEvent|RegisterEvent]] defined event.
<br>
<br>
'''Arguments:'''<br>
'''Arguments:'''<br>
''eventtype'' [[eventtype]]<br>
''eventtype'' [[eventtype]]<br>
''data'' varies depending on eventtype. Sometimes it's a table, sometimes it's a string.
''...'' variable number of arguments depending on event.
<br>
<br>

Revision as of 11:48, 20 February 2009

ProcessEvent

Definition: ProcessEvent(string eventtype, ...) -> nil
Description:
Processes various events. Trigger a with RegisterEvent defined event.
Arguments:
eventtype eventtype
... variable number of arguments depending on event.