用户:
yuans查看:0 回复:8 评论:0 创建时间:2022-05-06T17:45:57
废话不多说,上代码 先添加3个模型(模型在我主页https://box3.fun/u/XtBepdF1F0IGeb1) world.onPlayerJoin(({entity})=>{ entity.enableDamage=true entity.player.invisible=true; }) world.onPlayerJoin(({entity})=>{ entity.player.addWearable({ bodyPart:Box3BodyPart.HEAD, mesh:'mesh/骷髅头.vb', orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(-0.02,0.3,0), }); entity.player.addWearable({ bodyPart:Box3BodyPart.LEFT_LOWER_ARM, mesh:'mesh/骷髅腿.vb', orientation:newBox3Quaternion(1,1,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(-0.01,0.1,-0.05), }); entity.player.addWearable({ bodyPart:Box3BodyPart.RIGHT_LOWER_ARM, mesh:'mesh/骷髅腿.vb', orientation:newBox3Quaternion(0,1,1.2,1).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(-0.01,0.2,0), }); entity.player.addWearable({ bodyPart:Box3BodyPart.Box3BodyPart, mesh:'mesh/骷髅身体.vb', orientation:newBox3Quaternion(1,0,0,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(0,0.4,0), }); entity.player.addWearable({ bodyPart:Box3BodyPart.LEFT_LOWER_LEG, mesh:'mesh/骷髅腿.vb', orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(0,0.15,-0.2), }); entity.player.addWearable({ bodyPart:Box3BodyPart.RIGHT_LOWER_LEG, mesh:'mesh/骷髅腿.vb', orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(0,0.15,-0.2), }); });
world.onPlayerJoin(({entity})=>{ entity.enableDamage=true entity.player.invisible=true; }) world.onPlayerJoin(({entity})=>{ entity.player.addWearable({ bodyPart:Box3BodyPart.HEAD, mesh:'mesh/骷髅头.vb', orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(-0.02,0.3,0), }); entity.player.addWearable({ bodyPart:Box3BodyPart.LEFT_LOWER_ARM, mesh:'mesh/骷髅腿.vb', orientation:newBox3Quaternion(1,1,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(-0.01,0.1,-0.05), }); entity.player.addWearable({ bodyPart:Box3BodyPart.RIGHT_LOWER_ARM, mesh:'mesh/骷髅腿.vb', orientation:newBox3Quaternion(0,1,1.2,1).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(-0.01,0.2,0), }); entity.player.addWearable({ bodyPart:Box3BodyPart.Box3BodyPart, mesh:'mesh/骷髅身体.vb', orientation:newBox3Quaternion(1,0,0,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(0,0.4,0), }); entity.player.addWearable({ bodyPart:Box3BodyPart.LEFT_LOWER_LEG, mesh:'mesh/骷髅腿.vb', orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(0,0.15,-0.2), }); entity.player.addWearable({ bodyPart:Box3BodyPart.RIGHT_LOWER_LEG, mesh:'mesh/骷髅腿.vb', orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(0,0.15,-0.2), }); }); 点赞0
评论
Robot一只屑代码师world.onPlayerJoin(({entity})=>{ entity.enableDamage=true entity.player.invisible=true; }) world.onPlayerJoin(({entity})=>{ entity.player.addWearable({ bodyPart:Box3BodyPart.HEAD, mesh:'mesh/骷髅头.vb', orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(-0.02,0.3,0), }); entity.player.addWearable({ bodyPart:Box3BodyPart.LEFT_LOWER_ARM, mesh:'mesh/骷髅腿.vb', orientation:newBox3Quaternion(1,1,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(-0.01,0.1,-0.05), }); entity.player.addWearable({ bodyPart:Box3BodyPart.RIGHT_LOWER_ARM, mesh:'mesh/骷髅腿.vb', orientation:newBox3Quaternion(0,1,1.2,1).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(-0.01,0.2,0), }); entity.player.addWearable({ bodyPart:Box3BodyPart.Box3BodyPart, mesh:'mesh/骷髅身体.vb', orientation:newBox3Quaternion(1,0,0,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(0,0.4,0), }); entity.player.addWearable({ bodyPart:Box3BodyPart.LEFT_LOWER_LEG, mesh:'mesh/骷髅腿.vb', orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(0,0.15,-0.2), }); entity.player.addWearable({ bodyPart:Box3BodyPart.RIGHT_LOWER_LEG, mesh:'mesh/骷髅腿.vb', orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(0,0.15,-0.2), }); }); 点赞0
评论
Robot一只屑代码师world.onPlayerJoin(({entity})=>{ entity.enableDamage=true
entity.player.invisible=true; }) world.onPlayerJoin(({entity})=>{
entity.player.addWearable({ bodyPart:Box3BodyPart.HEAD, mesh:'mesh/骷髅头.vb',
orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(-0.02,0.3,0), }); entity.player.addWearable({ bodyPart:Box3BodyPart.LEFT_LOWER_ARM, mesh:'mesh/骷髅腿.vb',
orientation:newBox3Quaternion(1,1,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(-0.01,0.1,-0.05), }); entity.player.addWearable({ bodyPart:Box3BodyPart.RIGHT_LOWER_ARM, mesh:'mesh/骷髅腿.vb',
orientation:newBox3Quaternion(0,1,1.2,1).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(-0.01,0.2,0), }); entity.player.addWearable({ bodyPart:Box3BodyPart.Box3BodyPart, mesh:'mesh/骷髅身体.vb',
orientation:newBox3Quaternion(1,0,0,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(0,0.4,0), }); entity.player.addWearable({ bodyPart:Box3BodyPart.LEFT_LOWER_LEG, mesh:'mesh/骷髅腿.vb',
orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(0,0.15,-0.2), }); entity.player.addWearable({ bodyPart:Box3BodyPart.RIGHT_LOWER_LEG, mesh:'mesh/骷髅腿.vb',
orientation:newBox3Quaternion(1,0,1,0).rotateX(Math.PI/1), scale:newBox3Vector3(1,1,1), offset:newBox3Vector3(0,0.15,-0.2), }); }); 点赞0
评论