OnObjectCreated
From Onset Developer Wiki
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)