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,6 +11,9 @@ func _process(delta):
|
|||
for body in get_overlapping_bodies():
|
||||
if body.is_in_group("human"):
|
||||
var player = body.get_multiplayer_authority()
|
||||
if Global.teddyAuthorityID == 1:
|
||||
kill()
|
||||
else:
|
||||
rpc_id(player, "kill")
|
||||
print("Player collided with a death zone!")
|
||||
|
||||
|
|
Loading…
Reference in a new issue