猫史档案馆


求跑酷代码

用户:我是谁..我是谁..查看:290 回复:4 评论:8 创建时间:2020-04-05T13:44:17


如何做出跑酷终点奖励

求代码

帮助的人可以获得200源码币emotion_编程猫_加油


回复

上一页第 1 页 / 共 1 页下一页
我是谁..我是谁..

可以得到200源码币emotion_编程猫_溜了溜了

点赞0


评论


hecoshecos

你知道怎么设置标签吗?

点赞0


评论


QBZ_QBZ_

哦我这里有

点赞0


评论

源码币。。

给你了

好像用不了啊,是不是还要设置坐标啊

不,你得在终点添加一个模型,给他添加个id“last”

懂了

我的好像是终点飞了

网址给我看看

https://box3create.cod喵/games/b265b519a75c7fbac258


QBZ_QBZ_

world.querySelector('.last').onEntityContact(({entity,other})=>{
    if(!(other.player.canFly)){
        other.player.canFly=true
        other.player.invisible=true
        world.say("恭喜"+other.player.name+"到达跑酷终点,并获得了飞行2分钟,隐身1分钟的奖励!!")
        world.PVP = true
    }
    setTimeout(function wait_fly(){other.player.canFly = false;world.say(other.player.name+"解除了飞行")},120000 );  
    setTimeout(function wait_inv(){other.player.invisible= false;world.say(other.player.name+"解除了隐身")},60000 );  
    if(other.player.canFly){
        setTimeout(function say(){world.querySelectorAll('.无人机').forEach((x) => x.say("无人机:"+other.player.name+",不许飞着做弊!我可看着呢!"))},1500)
        
    }
})

点赞1


评论