OnDoorChangeDimension

From Onset Developer Wiki
Revision as of 10:03, 19 September 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Server|1.2.2}} {{FuncDescription|Event called when a door instance changes dimensions from SetDoorDimension.}} {{FuncSyntax|OnDoorChangeDimension(door, old_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
OnDoorChangeDimension

Type: Event
Context: Server
Introduced: v1.2.2

Description

Event called when a door instance changes dimensions from SetDoorDimension.

Syntax

OnDoorChangeDimension(door, old_dimension, new_dimension)

Parameters

  • door
    The door which changed dimension.
  • old_dimension
    The old dimension.
  • new_dimension
    The new dimension.

Example

AddEvent("OnDoorChangeDimension", function(door, old_dimension, new_dimension)
	print("Door "..door.." changed dimensions")
end)

See also