猫史档案馆


传送代码哪位大佬知道啊!!!

用户:周炜博周炜博查看:3 回复:2 评论:3 创建时间:2022-10-07T16:15:53


你们谁知道怎样与模型互动后传送到一个地方!!!!

求大佬指点一下!求代码QAQ

这是我地图最后一处不会的了!!!


回复

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

const npc = world.querySelectorAll('#模型名')
npc.enableInteract = true;
npc.interactRadius = 3;

npc.onInteract(({ entity }) => {
   entity.isPlayer ? entity.player.kick : entity.velocity.y += 10000
})

点赞1


评论


周炜博周炜博

谢谢了!

点赞0


评论