用户:
DebugDynamo查看:6 回复:18 评论:6 创建时间:2022-05-28T11:23:10
DebugDynamo代码:
world.onPlayerJoin(async({entity})=>{
entity.player.cameraMode = Box3CameraMode.FPS
entity.num = entity.player.cameraFovY
})
world.onPress(async({button,entity})=>{
if(button == Box3ButtonType.ACTION1){
while(entity.player.action1Button){
entity.player.cameraFovY = 0.05
await sleep(50)
}
entity.player.cameraFovY = entity.num
}
})点赞3
评论
egg鸡蛋蛋于是mc的摁下c键放大视野就蛋生了
world.onPlayerJoin(async({entity})=>{
entity.player.cameraMode = Box3CameraMode.FPS
entity.num = entity.player.cameraFovY
})
world.onPress(async({entity})=>{
if(entity.player.walkState == Box喵layerWalkState.CROUCH){
while(entity.player.walkState == Box喵layerWalkState.CROUCH){
entity.player.cameraFovY = 0.08
await sleep(50)
}
entity.player.cameraFovY = entity.num
}
})
const 啊 = /我把右键判定改成了下蹲判定/点赞2
评论
Ezra__world.onPress(async ({ button, entity }) => {
if (button == Box3ButtonType.CROUCH) {
entity.player.cameraMode = Box3CameraMode.FPS
entity.player.enableJump = false
entity.player.cameraFovY = 0.1
}
})
world.onRelease(async ({ button, entity }) => {
if (button == Box3ButtonType.CROUCH) {
entity.player.cameraMode = Box3CameraMode.FOLLOW
entity.player.enableJump = true
entity.player.cameraFovY = 0.25
}
})
@全能代码师 CS用这段吧()
点赞0
评论