Health and attacks!

This commit is contained in:
Twirpytherobot
2025-11-12 19:18:36 +00:00
parent 1d63abc581
commit bc30cfd6ca
14 changed files with 493 additions and 40 deletions
+3
View File
@@ -7,6 +7,9 @@ const MOUSE_SENSIBILITY: float = 0.005
@export var _spring_arm: SpringArm3D = null
func _unhandled_input(_event) -> void:
# Check if multiplayer is ready
if multiplayer.multiplayer_peer == null:
return
if (_event is InputEventMouseMotion) and is_multiplayer_authority():
rotate_y(-_event.relative.x * MOUSE_SENSIBILITY)