Update 'characters/teddy/Teddy.gd'
This commit is contained in:
parent
481b8fee79
commit
f0e10a273a
1 changed files with 14 additions and 12 deletions
|
@ -86,6 +86,8 @@ func _physics_process(delta):
|
|||
if is_multiplayer_authority():
|
||||
# This variable gets set my the death scene, so we know the player needs to be respawned
|
||||
if Global.playerPleaseRespawn == true:
|
||||
if not Global.respawnLocationChosen:
|
||||
Global.respawnLocationChosen = true
|
||||
get_node(teddyCollider).disabled = false
|
||||
var ramMax = Global.spawnCoords_x.size() - 1
|
||||
var ramnum = RandomNumberGenerator.new().randi_range(0, ramMax)
|
||||
|
|
Loading…
Reference in a new issue