用户:
良心发作的神经十点yu查看:1 回复:2 评论:1 创建时间:2022-07-14T16:29:19
教教我!!!!!!!!!!!!!!!
编程图bug君or(const e of world.querySelectorAll('*')){
if (e.id.startsWith('存档点')){
e.collides = true
e.fixed = true
e.onEntityContact(({ entity,other }) => {
if(other.isPlayer){
other.player.spawnPoint.set(entity.position.x,entity.position.y+3,entity.position.z)
other.player.directMessage('存档成功!')
}
})
}
}点赞0
评论
千星河凉月吖for (const e of world.querySelectorAll('*')) {
if (e.id.startsWith('存档点')){
e.collides = true
e.fixed = true
e.onEntityContact(({other}) => {
if (other.isPlayer) {
other.player.directMessage('存档成功')
other.player.spawnPoint.copy(other.position)
}
})
}
}点赞0
评论