猫史档案馆


求助!代码!

用户:月战老兵月战老兵查看: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
                }
            }
        })
    }
}

center_image


回复

上一页1 页 / 共 1下一页
ink_sans!ink_sans!

两个是不一样的

点赞0


评论


ink_sans!ink_sans!

正规滴和编程猫不一样

点赞0


评论


ink_sans!ink_sans!

例如:/Pen就没有

点赞0


评论