猫史档案馆


【求助】穿戴配件

用户:指令者指令者查看:3 回复:2 评论:3 创建时间:2022-12-11T10:51:21


怎么在玩家手上拿一个叫’奖杯‘的模型????

怎么把所有玩家手上的装备(如果有的话)删除???

在线等,急!!!!!!!!


回复

上一页1 页 / 共 1下一页
yee剑走天下yee剑走天下

???不是吧???起床的合作者居然会不知道???()()()

算了还是给个屑代码吧)穿戴懒得写()删除还算行)

function removeWearbles(entity = new Box3Entity) {
    entity.player.wearbles(Box3BodyPart.RIGHT_HAND).forEach((x) => entity.player.removeWearble(x))
}

点赞0


评论


名探酱名探酱

entity.player.addWearable({
        bodyPart: Box3BodyPart.RIGHT_HAND,
        mesh: 'mesh/奖杯.vb',
        orientation: new Box3Quaternion(0, 1, 0, 0).rotateY(Math.PI/2),
        scale: new Box3Vector3(0.2, 0.2, 0.2),
        offset: new Box3Vector3(0, -0.05, 0.1),
    });
const handWears = entity.player.wearables(Box3BodyPart.RIGHT_HAND); 
entity.player.removeWearable(handWears[0]);

点赞0


评论