Deploy and shooting brought back

This commit is contained in:
Rendo 2025-12-07 13:57:43 +05:00
commit b94e4cdf30
10 changed files with 25 additions and 15 deletions

View file

@ -241,7 +241,7 @@ func shoot(id:int , damage: int, distance: float) -> void:
var collision = space.intersect_ray(ray)
if collision != {} and collision["collider"] is Player:
collision["collider"].take_damage.rpc_id(int(collision["collider"].name),damage)
collision["collider"].take_damage(damage)
@rpc("any_peer","call_local","reliable")