用户:
月战老兵查看:0 回复:3 评论:0 创建时间:2021-07-02T20:44:54
我寻思着也没错啊
for (const e of world.querySelectorALL('*')) {
if (e.id.startsWith('存档点')) {
e.collides = true
e.fixed = true
e.meshScale = e.meshScale.Scale(2)
e.onEntityContact(({ other }) => {
if (other.isPlayer) {
if (e.position !== other.player.spawnPoint) {
other.player.directMessage('数据已记录')
other.player.spawnPoint = e.spawnPoint
}
}
})
}
}
