OnObjectDestroyed

From Onset Developer Wiki
OnObjectDestroyed

Type: Event
Context: Server
Introduced: v1.2.2

Description

Event called when an object instance was destroyed through DestroyObject.

Syntax

OnObjectDestroyed(object)

Parameters

  • object
    The object which was destroyed.

Example

function OnObjectDestroyed(object)
    print("Object "..object.." was destroyed")
end
AddEvent("OnObjectDestroyed", OnObjectDestroyed)

See also