OnObjectDestroyed

From Onset Developer Wiki
Revision as of 20:38, 31 August 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Server|1.2.2}} {{FuncDescription|Event called when an object instance was destroyed through DestroyObject.}} {{FuncSyntax|OnObjectDestroyed(vehicle)}} {{Fu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
OnObjectDestroyed

Type: Event
Context: Server
Introduced: v1.2.2

Description

Event called when an object instance was destroyed through DestroyObject.

Syntax

OnObjectDestroyed(vehicle)

Parameters

  • object
    The object which was destroyed.

Example

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

See also