OnObjectCreated

From Onset Developer Wiki
Revision as of 21:22, 6 October 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Server|1.3.0}} {{FuncDescription|Event called when an object instance was created through CreateObject.}} {{FuncSyntax|OnObjectCreated(object)}} {{FuncPara...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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