猫史档案馆


谁会做存档点!!!

用户:良心发作的神经十点yu良心发作的神经十点yu查看:1 回复:2 评论:1 创建时间:2022-07-14T16:29:19


教教我!!!!!!!!!!!!!!!


回复

上一页1 页 / 共 1下一页
编程图bug君编程图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


评论