Death collider fixed

This commit is contained in:
Paul Black 2023-05-25 21:26:16 -06:00
parent 017150b4bf
commit 247f79d19a

View file

@ -10,5 +10,10 @@ func _ready():
func _process(delta):
for body in get_overlapping_bodies():
if body.is_in_group("human"):
var player = body.get_multiplayer_authority()
rpc_id(player, "kill")
print("Player collided with a death zone!")
Global.player_dead()
@rpc("any_peer", "call_remote")
func kill():
Global.player_dead()