OnObjectChangeDimension

From Onset Developer Wiki
OnObjectChangeDimension

Type: Event
Context: Server
Introduced: v1.2.2

Description

Event called when an object instance changes dimensions from SetObjectDimension.

Syntax

OnObjectChangeDimension(object, old_dimension, new_dimension)

Parameters

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

Example

AddEvent("OnObjectChangeDimension", function(object, old_dimension, new_dimension)
	print("Object "..object.." changed dimensions")
end)

See also