用户:
精神I病院广东省分院院长查看:105 回复:6 评论:16 创建时间:2022-12-30T11:33:56
entity.player.disableInputDirection=Box3InputDirection.BOTH
为啥这串代码不行(是api取消了吗)
entity.walkButton=false
这串为啥也不行-_-||
entity.runSpeed=0
entity.walkSpeed=0
还有这串
哪位大佬解释一下 在线等![]()
SCS_user_LoeheodVOQ下面都要把entity改成entity.player,而且wakbutton什么都是只读的
点赞0
评论
只读吗()好吧
但改成entity.player会报错说undefined
这runSpeed和walkSpeed定义在实体中也不知道吉吉喵是怎么想的
你代码发过来
完整吗?还是部分
你肯定是某一步弄错了,runSpeed和walkSpeed都是Player的属性
这一段的
等等哈 我去截个图
不要截图,最好发文字
没事了 用箭头函数参数内忘加{} awa谢谢
星辰_零柒world.onPlayerJoin(async({ entity }) => {
entity.player.disableInputDirection=Box3InputDirection.BOTH
})
这样可以的哦
点赞1
评论
async可以去了()()
我闲的没事()