OnObjectCreated: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Event|Server|1.3.0}} {{FuncDescription|Event called when an object instance was created through CreateObject.}} {{FuncSyntax|OnObjectCreated(object)}} {{FuncPara...")
 
(No difference)

Latest revision as of 21:22, 6 October 2020

OnObjectCreated

Type: Event
Context: Server
Introduced: v1.3.0

Description

Event called when an object instance was created through CreateObject.

Syntax

OnObjectCreated(object)

Parameters

  • object
    The object which was created.

Example

function OnObjectCreated(object)
    print("Object "..object.." was created")
end
AddEvent("OnObjectCreated", OnObjectCreated)

See also