OnPlayerChangeDimension

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

Type: Event
Context: Server
Introduced: v1.2.2

Description

Event called when a player instance changes dimensions from SetPlayerDimension.

Syntax

OnPlayerChangeDimension(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