猫史档案馆


求助个问题

用户:成熟的木叶龙zzYo成熟的木叶龙zzYo查看:1 回复:5 评论:1 创建时间:2022-12-26T12:16:13


各位我想问个问题  怎么做到点击克隆体删除啊在2D创作里,找不到相应指令emotion_编程猫_搓头


回复

上一页1 页 / 共 1下一页
邪恶蛋炫帅邪恶蛋炫帅

可以隐藏

点赞0


评论


邪恶蛋炫帅邪恶蛋炫帅

但好像不可以删除

点赞0


评论


邪恶蛋炫帅邪恶蛋炫帅

当作为克隆体启动时下面添加鼠标的一些模块因该可以实现隐藏

点赞0


评论


2396023960

是这意思吗??

点赞1


评论


无极玄天无极玄天

world.onPlayerJoin(({ entity }) => {
    entity.enableDamage = true;
    entity.player.onPress(({ button, raycast:{ hitEntity, direction } }) => {
        if (button !== 'action0' || !hitEntity ) {
            return;
        }if(hitEntity.isPlayer){
            return
        }
        hitEntity.destroyed=true
        hitEntity.destroy()
    });
});

点赞0


评论