Spawnables

This commit is contained in:
Rendo 2025-12-03 20:50:47 +05:00
commit ea4f70f5ef
25 changed files with 4784 additions and 4436 deletions

View file

@ -66,6 +66,7 @@ func set_after_spawn(start_position: Vector3,new_team: int):
@rpc("any_peer","call_local","reliable")
func take_damage(damage: int):
hp -= damage
$DamageAudio.multiplayer_play()
func _input(event: InputEvent) -> void:
if not is_multiplayer_authority():