
Lv.1
在我眼里打转的泪水,终究还是流了下来
签名:勿扰,谢谢。
在 【岛3】求跑酷的代码(有传送的) 中回复
world.querySelectorAll('.起点').forEach((e)=>{
e.meshEmissive=0;
e.onEntityContact(({entity,other})=>{
if(other.player.Start==false){
world.say(other.player.name+'出发了!');
other.player.Start=true;
other.player.canFly = false
other.player.runSpeed = 0.4
other.player.spawnPoint.copy(other.position);
}
})
})
world.querySelectorAll('.存档').forEach((e)=>{
e.meshEmissive=0;
e.onEntityContact(({entity,other})=>{
if(other.player.Start==true){
world.say(other.player.name+'存档成功!');
other.player.spawnPoint.copy(other.position);
}
})
})
world.querySelectorAll('.终点').forEach((e)=>{
e.meshEmissive=0;
e.onEntityContact(({entity,other})=>{
if(other.player.Start==true){
world.say(other.player.name+'到达了终点,获得飞行权限!');
other.player.spawnPoint.copy(other.position);
other.player.Start = false
other.player.canFly = true
}
})
})2020-12-26T12:55:06 点赞:1