bindEventHandler: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 10: Line 10:
|return = void
|return = void
|freturn = void
|freturn = void
|note = [[Server/Events|Server Events]]<br>
|note = [[Server/Events|Server Events]]
[[Client/Events|Client Events]]
|note2 = [[Client/Events|Client Events]]
|cb3arg1 = Event event The event object.
|cb3arg1 = Event event The event object.
|cb3arg2 = ... vararg The arguments specific to the <code>eventName</code>.
|cb3arg2 = ... vararg The arguments specific to the <code>eventName</code>.
|exampleJS = bindEventHandler("OnResourceStart", thisResource, function(event, resource)
{
    message('Resource ' + resource.name + ' has started.');
});
}}
}}
7,072

edits