用户:
星星上的雪花查看:5 回复:7 评论:5 创建时间:2021-12-11T13:12:37
多谢@AbnormalLOG的帖子喵o.cn/community/415662 章鱼游戏的代码找到了(?) world.onPlayerJoin(({entity})=>{ entity.player.disableInputDirection=Box3InputDirection.VERTICAL;//只禁用前后方向键,但可左右移动 entity.player.disableInputDirection=Box3InputDirection.HORIZONTAL;//只禁用左右方向键,但可前后移动 entity.player.disableInputDirection=Box3InputDirection.BOTH;//禁用所有方向键,不可移动 entity.player.disableInputDirection=Box3InputDirection.NONE;//取消喵,恢复移动 })
星星上的雪花world.onPlayerJoin(({entity})=>{
entity.player.disableInputDirection=Box3InputDirection.VERTICAL;//只禁用前后方向键,但可左右移动
entity.player.disableInputDirection=Box3InputDirection.HORIZONTAL;//只禁用左右方向键,但可前后移动
entity.player.disableInputDirection=Box3InputDirection.BOTH;//禁用所有方向键,不可移动
entity.player.disableInputDirection=Box3InputDirection.NONE;//取消喵,恢复移动
})点赞1
评论