6,834
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = bindEventHandler | ||
|side = shared | |||
|type = function | |type = function | ||
| | |games = iii vc sa iv | ||
| | |desc = add a handler to call when an event occurs for the source item | ||
| | |arg1 = string eventName The name of the event, case-insensitive. | ||
| | |arg2 = handle source The source element. | ||
| | |arg3 = function handler The scripting function to call when the event occurs for the source element. | ||
| | |return = void | ||
|freturn = void | |||
|note = [[Server/Events|Server Events]]<br> | |||
| | |||
| | |||
[[Client/Events|Client Events]] | [[Client/Events|Client Events]] | ||
|cb3arg1 = Event event The event object. | |||
|cb3arg2 = ... vararg The arguments specific to the <code>eventName</code>. | |||
}} | }} |
edits