OnDoorDestroyed

From Onset Developer Wiki
Revision as of 20:48, 31 August 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Server|1.2.2}} {{FuncDescription|Event called when a door instance was destroyed through DestroyDoor.}} {{FuncSyntax|OnDoorDestroyed(door)}} {{FuncParamete...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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