-
Notifications
You must be signed in to change notification settings - Fork 2
ZoneManager API command
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
-
返回值:区域形状边数
IZoneManager
/battleroyale api zoneManager [...]
/battleroyale api zoneManager hasEnoughZoneToStart
-
return value: whether current game zones are sufficient to start the game
/battleroyale api zoneManager randomizeZoneTickOffset
-
return value: 1
IGameZoneReadApi
/battleroyale api zoneManager getGameZone [id]
- id: zone ID
-
return value: whether the corresponding game zone exists
IGameZone
/battleroyale api zoneManager getGameZone [id] [...]
- if the game zone does not exist, the
return valueis -1
/battleroyale api zoneManager getGameZone [id] getZoneDelay
-
return value: current zone generation delay
/battleroyale api zoneManager getGameZone [id] isCreated
-
return value: whether the current game zone was successfully initialized
/battleroyale api zoneManager getGameZone [id] isPresent
-
return value: whether the current game zone is in its execution phase
/battleroyale api zoneManager getGameZone [id] isFinished
-
return value: whether the current game zone has finished execution
/battleroyale api zoneManager getGameZone [id] tickableZone [...]
- if the game zone does not exist, the
return valueis -1
/battleroyale api zoneManager getGameZone [id] tickableZone isReady
-
return value: whether the current game zone function is ready to execute funcTick
/battleroyale api zoneManager getGameZone [id] tickableZone getTickFrequency
-
return value: the game zone's current zone function tick frequency, in ticks
/battleroyale api zoneManager getGameZone [id] tickableZone setTickFrequency [tickFreq]
- tickFreq: funcTick frequency
-
return value: 1
/battleroyale api zoneManager getGameZone [id] tickableZone getTickOffset
-
return value: the game zone's current zone function tick time offset
/battleroyale api zoneManager getGameZone [id] tickableZone setTickOffset [tickOffset]
- tickOffset: zone function tick time offset
-
return value: 1
/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 valueis -2. - If the game dimension cannot be retrieved, the
return valueis -3. -
return value: 1
/battleroyale api zoneManager getGameZone [id] tickableZone getShapeMoveDelay
-
return value: delay in zone movement
/battleroyale api zoneManager getGameZone [id] tickableZone getShapeMoveTime
-
return value: duration of zone movement
/battleroyale api zoneManager getGameZone [id] spatialZone [...]
- if the game zone does not exist, the
return valueis -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: 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
/battleroyale api zoneManager getGameZone [id] spatialZone isDetermined
-
return value: whether the start/end states of the zone shape are determined
/battleroyale api zoneManager getGameZone [id] spatialZone hasBadShape
-
return value: whether the zone process contains states with geometric constraint anomalies
/battleroyale api zoneManager getGameZone [id] spatialZone getSegments
-
return value: the number of segments in the zone shape
🌐 Language / 语言
-
- Configuration Introduction
- Command Introcuction
- Game type introduction
- About
- Mod development tutorial