# Spawn Point Management

Before using the Spawn Point API, you need to create a Spawn Point API Management object as follows:

local Spawnport = class.Spawnport.new()

The specific function name and description are as follows:

Serial number Function name Description
1 getSpawnPoint(...) Get Spawn Point
2 getChunkValidSpawnPos(...) Get chunk valid Spawn Point, which can be used as Spawn Point

# getSpawnPoint

  • Parameters and types:nil
  • Return value and types:
  • The main role of this method: Get Spawn Point
  • The specific use cases are as follows:
local result = Spawnport:getSpawnPoint()

# getChunkValidSpawnPos

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get chunk valid Spawn Point, which can be used as Spawn Point
  • The specific use cases are as follows:
local result = Spawnport:getChunkValidSpawnPos(x, y, z)
Last Update: 11/22/2019, 2:31:59 PM