OnPlayerChangeDimension

From Onset Developer Wiki
OnPlayerChangeDimension

Type: Event
Context: Server
Introduced: v1.2.2

Description

Event called when a player instance changes dimensions from SetPlayerDimension.

Syntax

OnPlayerChangeDimension(player, old_dimension, new_dimension)

Parameters

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

Example

AddEvent("OnPlayerChangeDimension", function(player, old_dimension, new_dimension)
	print("Player "..player.." changed dimensions")
end)

See also