OnDoorDestroyed

From Onset Developer Wiki
OnDoorDestroyed

Type: Event
Context: Server
Introduced: v1.2.2

Description

Event called when a door instance was destroyed through DestroyDoor.

Syntax

OnDoorDestroyed(door)

Parameters

  • door
    The door which was destroyed.

Example

function OnDoorDestroyed(door)
    print("Door "..door.." was destroyed")
end
AddEvent("OnDoorDestroyed", OnDoorDestroyed)

See also