crouch fixed

This commit is contained in:
Rendo 2025-11-26 23:04:24 +05:00
commit 276ff0252b
11 changed files with 167 additions and 115 deletions

View file

@ -31,10 +31,7 @@ func physics_update(_delta: float) -> void:
player.velocity.x = move_toward(player.velocity.x, 0, SPEED)
player.velocity.z = move_toward(player.velocity.z, 0, SPEED)
func _input(event: InputEvent) -> void:
if not is_multiplayer_authority():
return
func state_input(event: InputEvent) -> void:
if event.is_action_pressed("plr_crouch"):
transition.emit("Crouch")