用户:
神岛吉吉喵查看:13 回复:21 评论:13 创建时间:2021-02-15T21:45:03
只需要下面这串神奇的代码
就能让模型在固定的时间消失!
async function hideAfter3Sec(entity) {
await sleep(3000)
entity.meshInvisible = true
}
hideAfter3Sec(world.querySelector('#灯笼'))
修改时间和模型名称
在你的地图试试吧~

扫描下方二维码
带你看看不一样的喵喵!

开发API文档:https://docs.box3.codemao.cn/
加入代码岛3.0官方内测Q喵
下面的二维码会扫出来什么呢?( =•ω•= )m

YDS尹子这样也可以)
async function hideAfter3Sec(entity) {
setTimeout(()=>{entity.meshInvisible=true},3000)
}
hideAfter3Sec(world.querySelector('#灯笼'))点赞1
评论
特级学霸wzh应该是
async function hideAfter3Sec(entity) {
await sleep(3000)
entity.meshInvisible = true
}
hideAfter3Sec(world.querySelector('.灯笼'))点赞0
评论