猫史档案馆


代码哪里错了呢

用户:某科学的电磁炮某科学的电磁炮查看:1 回复:1 评论:1 创建时间:2023-02-07T22:36:26


const npc=world.querySelector("#something");
npc.enableInteract=true;
npc.interactHint="something";
npc.interactRadius=3;
npc.onInteract(({entity})=>{
    /**something for the entity */
})
npc.onInteract(async({entity}) => {
    entity.player.link('https://box3.codemao.cn/g/50127710')
});

求大佬解释并教我,谢谢qaq


回复

上一页1 页 / 共 1下一页
十殿阎王十殿阎王

代码没问题()应该是你没有创建一个叫‘something’的实体()

点赞0


评论