用户:ZCHWill666查看:11 回复:4 评论:11 创建时间:2020-06-02T13:48:00
快点发啊喵11111111
卫道士32_32*2没了给图就行
world.querySelectorAll(".car").forEach(e=>{
e.onEntityContact(({entity,other})=>{
if(!other.isPlayer){return}
other.mesh=entity.mesh;
world.say(""+entity.meshScale)
other.meshScale=entity.meshScale;
other.player.invisible=true;
})})
前提:车有“car”标签。
点赞0
评论
world.querySelectorAll('.target').forEach((e)=>{
e.onEntityContact(({entity,other})=>{
if(!other.isPlayer){return}
other.mesh=entity.mesh;
other.meshScale=entity.meshScale;
other.player.invisible=true;
world.say(other.player.name+'你已经开上车了')
world.say('说我要下车就可以下车了')
})
})
world.onChat(({message,entity})=>{
if(message==='我要下车'){
entity.mesh='';
entity.player.invisible=false;
world.say(entity.player.name+'下了车')
}
})点赞0
评论
HP_格兰芬多哈迷world.querySelectorAll('.车').forEach((e)=>{
e.onEntityContact(({entity,other})=>{
if(!other.isPlayer){return}
other.mesh=entity.mesh;
other.meshScale=entity.meshScale;
other.player.invisible=true;
other.meshOrientation = new Box3Quaternion(0, 1, 0, 0);
world.say(other.player.name+" 开启了车");
other.player.runSpeed = 2;
other.player.walkSpeed = 1.5;
other.player.scale =0.6;
other.player.jumpPower = 0;
});
});点赞0
评论