SetNPCDimension

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
SetNPCDimension

Type: Function
Context: Server
Introduced: v1.0

Description

Sets the dimension of this npc. Players can only see npcs in the same dimension.

  • Default dimension: 0
  • Maximum dimension: 4294967295

Syntax

SetNPCDimension(npc, dimension)

Parameters

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

Return Value

  • Returns true on success.

Example

SetNPCDimension(npc, 0) -- Set the NPC dimension to 0

See also