Bug fixing
This commit is contained in:
parent
e2e09b155e
commit
ae7585a799
3 changed files with 146 additions and 3 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -11,7 +11,10 @@ func _process(delta):
|
||||||
for body in get_overlapping_bodies():
|
for body in get_overlapping_bodies():
|
||||||
if body.is_in_group("human"):
|
if body.is_in_group("human"):
|
||||||
var player = body.get_multiplayer_authority()
|
var player = body.get_multiplayer_authority()
|
||||||
rpc_id(player, "kill")
|
if Global.teddyAuthorityID == 1:
|
||||||
|
kill()
|
||||||
|
else:
|
||||||
|
rpc_id(player, "kill")
|
||||||
print("Player collided with a death zone!")
|
print("Player collided with a death zone!")
|
||||||
|
|
||||||
@rpc("any_peer", "call_remote")
|
@rpc("any_peer", "call_remote")
|
||||||
|
|
Loading…
Reference in a new issue