跳到主要内容

airwall(空气墙击退)

玩家触碰到指定范围边界时会被击退,并可额外执行脚本(例如提示、音效、回传等)。

params

必填:

  • aLocation:范围角点 A
  • bLocation:范围角点 B

可选:

  • speed:击退速度(默认 0.9
  • kether:脚本列表(默认空)

示例:

airwall-1:
type: airwall
params:
aLocation: { x: 0, y: 64, z: 0 }
bLocation: { x: 10, y: 70, z: 10 }
speed: 0.9
kether:
- 'tell "前方不可通过"'

行为细节

  • 触发事件:PlayerMoveEvent
  • 执行者:触发的玩家