Skip to content

ZoneManager API command

XiaoColorful edited this page Mar 22, 2026 · 1 revision

English

区域管理器

IZoneManager

/battleroyale api zoneManager [...]

是否有足够区域开始游戏

/battleroyale api zoneManager hasEnoughZoneToStart

  • 返回值:当前游戏区域是否足够开始游戏
随机区域功能延迟

/battleroyale api zoneManager randomizeZoneTickOffset

  • 返回值:1

游戏区域读取

IGameZoneReadApi

获取游戏区域

/battleroyale api zoneManager getGameZone [id]

  • id:区域ID
  • 返回值:是否存在对应的游戏区域
游戏区域

IGameZone

/battleroyale api zoneManager getGameZone [id] [...]

  • 若不存在对应的游戏区域,返回值为 -1
获取游戏区域生成延迟

/battleroyale api zoneManager getGameZone [id] getZoneDelay

获取游戏是否创建

/battleroyale api zoneManager getGameZone [id] isCreated

  • 返回值:当前游戏区域是否初始化成功
获取游戏区域是否现存

/battleroyale api zoneManager getGameZone [id] isPresent

  • 返回值:当前游戏区域是否正在执行阶段
获取游戏区域是否结束

/battleroyale api zoneManager getGameZone [id] isFinished

  • 返回值:当前游戏区域是否已执行完成
游戏区域功能

/battleroyale api zoneManager getGameZone [id] tickableZone [...]

  • 若不存在对应的游戏区域,返回值为 -1
获取游戏区域功能是否就绪

/battleroyale api zoneManager getGameZone [id] tickableZone isReady

  • 返回值:当前游戏区域功能是否可以执行 funcTick
获取游戏区域功能执行频率

/battleroyale api zoneManager getGameZone [id] tickableZone getTickFrequency

  • 返回值:当前游戏区域功能 funcTick 频率,单位 tick
设置游戏区域功能执行频率

/battleroyale api zoneManager getGameZone [id] tickableZone setTickFrequency [tickFreq]

  • tickFreq:funcTick 频率
  • 返回值:1
获取游戏区域功能执行偏移

/battleroyale api zoneManager getGameZone [id] tickableZone getTickOffset

  • 返回值:游戏区域功能 funcTick 的时间偏移
设置游戏区域功能执行偏移

/battleroyale api zoneManager getGameZone [id] tickableZone setTickOffset [tickOffset]

  • tickOffset:funcTick 的时间偏移
  • 返回值:1
对玩家执行区域功能

/battleroyale api zoneManager getGameZone [id] tickableZone playerFunc [player]

  • player:用实体选择器选中并获取游戏玩家
  • 若不存在对应的游戏玩家,返回值为 -2
  • 若无法获取游戏维度,返回值为 -3
  • 返回值:1
获取游戏区域移动延迟

/battleroyale api zoneManager getGameZone [id] tickableZone getShapeMoveDelay

获取游戏区域移动时长

/battleroyale api zoneManager getGameZone [id] tickableZone getShapeMoveTime

游戏区域形状

/battleroyale api zoneManager getGameZone [id] spatialZone [...]

  • 若不存在对应的游戏区域,返回值为 -1
是否在区域内

/battleroyale api zoneManager getGameZone [id] spatialZone isWithinZone

/battleroyale api zoneManager getGameZone [id] spatialZone isWithinZone [xyz]

/battleroyale api zoneManager getGameZone [id] spatialZone isWithinZone [xyz] [progress]

  • xyz:指定的测试位置,如无则取指令 /execute at 位置
  • progress:区域形状进度,范围[0, 1]
  • 返回值:是否处于执行逻辑的区域范围内
获取游戏区域形状是否确定

/battleroyale api zoneManager getGameZone [id] spatialZone isDetermined

  • 返回值:区域形状起止状态是否已经确定
获取区域形状是否有坏形状

/battleroyale api zoneManager getGameZone [id] spatialZone hasBadShape

  • 返回值:区域过程是否有含有几何约束异常的状态
获取区域形状边数

/battleroyale api zoneManager getGameZone [id] spatialZone getSegments

  • 返回值:区域形状边数

English

Zone manager

IZoneManager

/battleroyale api zoneManager [...]

Has enough zone to start

/battleroyale api zoneManager hasEnoughZoneToStart

  • return value: whether current game zones are sufficient to start the game
Randomize zone tick offset

/battleroyale api zoneManager randomizeZoneTickOffset

  • return value: 1

Game zone read api

IGameZoneReadApi

Get game zone

/battleroyale api zoneManager getGameZone [id]

  • id: zone ID
  • return value: whether the corresponding game zone exists
Game zone

IGameZone

/battleroyale api zoneManager getGameZone [id] [...]

  • if the game zone does not exist, the return value is -1
Get game zone delay

/battleroyale api zoneManager getGameZone [id] getZoneDelay

Is created

/battleroyale api zoneManager getGameZone [id] isCreated

  • return value: whether the current game zone was successfully initialized
Is present

/battleroyale api zoneManager getGameZone [id] isPresent

  • return value: whether the current game zone is in its execution phase
Is finished

/battleroyale api zoneManager getGameZone [id] isFinished

  • return value: whether the current game zone has finished execution
Game zone function

/battleroyale api zoneManager getGameZone [id] tickableZone [...]

  • if the game zone does not exist, the return value is -1
Is ready

/battleroyale api zoneManager getGameZone [id] tickableZone isReady

  • return value: whether the current game zone function is ready to execute funcTick
Get tick frequency

/battleroyale api zoneManager getGameZone [id] tickableZone getTickFrequency

  • return value: the game zone's current zone function tick frequency, in ticks
Set tick frequency

/battleroyale api zoneManager getGameZone [id] tickableZone setTickFrequency [tickFreq]

  • tickFreq: funcTick frequency
  • return value: 1
Get tick offset

/battleroyale api zoneManager getGameZone [id] tickableZone getTickOffset

  • return value: the game zone's current zone function tick time offset
Set tick offset

/battleroyale api zoneManager getGameZone [id] tickableZone setTickOffset [tickOffset]

  • tickOffset: zone function tick time offset
  • return value: 1
Execute player function

/battleroyale api zoneManager getGameZone [id] tickableZone playerFunc [player]

  • player: selects game player using an entity selector
  • If the game player does not exist, the return value is -2.
  • If the game dimension cannot be retrieved, the return value is -3.
  • return value: 1
Get shape move delay

/battleroyale api zoneManager getGameZone [id] tickableZone getShapeMoveDelay

Get shape move time

/battleroyale api zoneManager getGameZone [id] tickableZone getShapeMoveTime

Game zone shape

/battleroyale api zoneManager getGameZone [id] spatialZone [...]

  • if the game zone does not exist, the return value is -1
Is within zone

/battleroyale api zoneManager getGameZone [id] spatialZone isWithinZone

/battleroyale api zoneManager getGameZone [id] spatialZone isWithinZone [xyz]

/battleroyale api zoneManager getGameZone [id] spatialZone isWithinZone [xyz] [progress]

  • xyz: specified test location, the /execute at position is used if not specified
  • progress: the progress of the zone shape, range [0, 1]
  • return value: whether the position is within the zone's execution logic range
Is determined

/battleroyale api zoneManager getGameZone [id] spatialZone isDetermined

  • return value: whether the start/end states of the zone shape are determined
Has bad shape

/battleroyale api zoneManager getGameZone [id] spatialZone hasBadShape

  • return value: whether the zone process contains states with geometric constraint anomalies
Get segments

/battleroyale api zoneManager getGameZone [id] spatialZone getSegments

  • return value: the number of segments in the zone shape

🌐 Language / 语言


Clone this wiki locally