OnElementStreamIn: Difference between revisions

no edit summary
No edit summary
No edit summary
Tag: Manual revert
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = shared
|name = onElementStreamIn
|side = shared
|type = event
|type = event
|name = onElementStreamIn
|games = iii vc sa iv
|parameter1 = Element element The element that has streamed in for a client.
|desc = an element streams in for a client
|parameter2 = Client client The client that the element has streamed in for. Server-side only.
|arg1 = Element element The element that has streamed in for a client.
|usage = an element streams in for a client
|arg2 = Client client The client that the element has streamed in for. Server-side only.
|callbackParametersSS = Event event, Element element, Client client
|cancel = true
|callbackParametersCS = Event event, Element element
|cancellable = true
|exampleJSSS = addEventHandler('OnElementStreamIn', (event, element, client) => {
|exampleJSSS = addEventHandler('OnElementStreamIn', (event, element, client) => {
messageClient('Element with id ' + element.id + ' has streamed in for ' + client.name, client, COLOUR_BLUE);
message('Element with id ' + element.id + ' has streamed in for ' + client.name, COLOUR_BLUE);
});
});
|exampleJSCS = addEventHandler('OnElementStreamIn', (event, element) => {
|exampleJSCS = addEventHandler('OnElementStreamIn', (event, element) => {
Line 16: Line 15:
});
});
|exampleLuaSS = addEventHandler('OnElementStreamIn', function(event, element, client)
|exampleLuaSS = addEventHandler('OnElementStreamIn', function(event, element, client)
messageClient('Element with id ' .. element.id .. ' has streamed in for a client.', client, COLOUR_RED)
message('Element with id ' .. element.id .. ' has streamed in for a client.', COLOUR_RED)
end)
end)
|exampleLuaCS = addEventHandler('OnElementStreamIn', function(event, element)
|exampleLuaCS = addEventHandler('OnElementStreamIn', function(event, element)
6,833

edits