Death collider fixed
This commit is contained in:
parent
017150b4bf
commit
247f79d19a
1 changed files with 6 additions and 1 deletions
|
@ -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!")
|
||||
|
||||
@rpc("any_peer", "call_remote")
|
||||
func kill():
|
||||
Global.player_dead()
|
||||
|
|
Loading…
Reference in a new issue