OnObjectStreamOut: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 1: Line 1:
{{Info|Event|Client|1.0}}
{{Info|Event|Client & Server|1.0/1.5.0}}


{{FuncDescription|Called when an object is streamed out from the server.}}
{{FuncDescription|Called when an object is streamed out from the server.
 
'''Note: On the server you must enable this event with [[EnableObjectStreamEvents]] first.'''}}


{{FuncSyntax|OnObjectStreamOut(object)}}
{{FuncSyntax|OnObjectStreamOut(object)}}
Line 9: Line 11:


== Example ==
== Example ==
===Client===
<syntaxhighlight lang='Lua'>
<syntaxhighlight lang='Lua'>
AddEvent("OnObjectStreamOut", function (object)
AddEvent("OnObjectStreamOut", function (object)

Latest revision as of 14:32, 18 July 2021

OnObjectStreamOut

Type: Event
Context: Client & Server
Introduced: v1.0/1.5.0

Description

Called when an object is streamed out from the server.

Note: On the server you must enable this event with EnableObjectStreamEvents first.

Syntax

OnObjectStreamOut(object)

Parameters

  • object
    The object identifier which streamed out.

Example

Client

AddEvent("OnObjectStreamOut", function (object)
    AddPlayerChat("You streamed out the object ID "..object..".")
end)

See also