OnDoorDestroyed: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Event|Server|1.2.2}} {{FuncDescription|Event called when a door instance was destroyed through DestroyDoor.}} {{FuncSyntax|OnDoorDestroyed(door)}} {{FuncParamete..."
 
(No difference)

Latest revision as of 20:48, 31 August 2020

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