用户:
执着的木叶龙OJzT查看:0 回复:0 评论:0 创建时间:2023-08-09T20:51:40
代码:
a = 9
if (a >= 1){
world.onPlayerJoin(({ entity }) => {
entity.player.addWearable({
bodyPart: Box3BodyPart.HIPS,
mesh: 'mesh/1号模型.vb', //使用代码时,此处的名称需与地图中的模型名称保持一致
orientation: new Box3Quaternion(2, 2, 0, 0).rotateY(-Math.PI),
offset: new Box3Vector3(0, 0, 0),
scale: Box3Vector3 = new Box3Vector3(0.15, 0.15, 0.15),
});
});
}
if (a >= 2){
world.onPlayerJoin(({ entity }) => {
entity.player.addWearable({
bodyPart: Box3BodyPart.torso,
mesh: 'mesh/1号模型.vb', //使用代码时,此处的名称需与地图中的模型名称保持一致
orientation: new Box3Quaternion(2, 2, 0, 0).rotateY(-Math.PI),
offset: new Box3Vector3(0, 0, 0),
});
});
}
报错代码:
TypeError:Box3Vector3 is not aconstructor at eval(index.js:21:21)