猫史档案馆


https://box3.codemao.cn/e/1742c6da53a9a7a28f99

用户:木久言Z退了木久言Z退了查看:1 回复:1 评论:1 创建时间:2023-06-24T20:04:09


https://box3.codemao.cn/e/1742c6da53a9a7a28f99

半成品跑酷地图

找代码合作


回复

上一页1 页 / 共 1下一页
可靠的蓝甲虫sDuG可靠的蓝甲虫sDuG

存档代码:

for (const e of world.querySelectorAll('*')) {
    if (e.id.startsWith('存档点')) {
        e.meshScale = e.meshScale.scale(1)
        e.onEntityContact(({ other }) => { 
            if (other.isPlayer) { 
                if (e.position !== other.player.spawnPoint) { 
                    other.player.directMessage('存档成功!')
                    other.player.spawnPoint = e.position
                }
            }
        })
    }
}

点赞0


评论