OnPickupChangeDimension

From Onset Developer Wiki
OnPickupChangeDimension

Type: Event
Context: Server
Introduced: v1.2.2

Description

Event called when a pickup instance changes dimensions from SetPickupDimension.

Syntax

OnPickupChangeDimension(pickup, old_dimension, new_dimension)

Parameters

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

Example

AddEvent("OnPickupChangeDimension", function(pickup, old_dimension, new_dimension)
	print("Pickup "..pickup.." changed dimensions")
end)

See also