用户:
DebugDynamo查看:2 回复:7 评论:2 创建时间:2022-01-15T16:21:20
今天来教大家如何与模型互动就穿上模型
const hep = world.querySelector('#和平队长')
hep.enableInteract = true
hep.interactHint = '和平队长'
hep.interactRadius = 3
hep.onInteract(async ({ entity }) => {
entity.mesh = hep.mesh
entity.meshScale = new Box3Vector3(1 / 16, 1 / 16, 1 / 16);
entity.meshOrientation = new Box3Quaternion(0, 2, 0, 2)
entity.player.invisible = true;
entity.player.directMessage('你成为了和平队长')
})
黑者开发我11个币投了好多了。只剩下5个了。几乎全部给你。imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E5%8A%A0%E6%B2%B9.gif"alt="emotion_编程猫_加油"
点赞1
评论
黑者开发加油!imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E5%8A%A0%E6%B2%B9.gif"alt="emotion_编程猫_加油"
点赞0
评论