Deploy and shooting brought back
This commit is contained in:
parent
c1548e5451
commit
b94e4cdf30
10 changed files with 25 additions and 15 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue