SetPlayerDimension

From Onset Developer Wiki
Revision as of 11:06, 2 September 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
SetPlayerDimension

Type: Function
Context: Server
Introduced: v1.0

Description

Sets the dimension (Virtual World) of this player. Players can only see players and other entities in the same dimension.

  • Default dimension: 0
  • Maximum dimension: 4294967295

Syntax

SetPlayerDimension(player, dimension)

Parameters

  • player
    The player identifier.
  • dimension
    The new dimension to set.

Return Value

  • This function returns nothing.

Example

Player dimension example can be found in the race package: https://github.com/BlueMountainsIO/OnsetLuaScripts/blob/master/race/server/race.lua#L422

See also