Server side bullet registration

This commit is contained in:
Rendo 2025-11-28 20:50:42 +05:00
commit 26e5fa71e2
5 changed files with 47 additions and 1 deletions

View file

@ -45,3 +45,7 @@ func set_after_spawn(start_position: Vector3,new_team: int):
TEMP_start_pos = global_position
team = new_team as Session.TEAMS
spawned.emit()
@rpc("any_peer","call_local","reliable")
func take_damage(damage: int):
hp -= damage