OnDoorCreated

From Onset Developer Wiki
OnDoorCreated

Type: Event
Context: Server
Introduced: v1.3.0

Description

Event called when an door instance was created through CreateDoor.

Syntax

OnDoorCreated(door)

Parameters

  • door
    The door which was created.

Example

function OnDoorCreated(door)
    print("Door "..door.." was created")
end
AddEvent("OnDoorCreated", OnDoorCreated)

See also