Update 'characters/teddy/Teddy.gd'

This commit is contained in:
Paul Black 2023-07-03 23:09:32 +00:00
parent 481b8fee79
commit f0e10a273a

View file

@ -86,6 +86,8 @@ func _physics_process(delta):
if is_multiplayer_authority(): if is_multiplayer_authority():
# This variable gets set my the death scene, so we know the player needs to be respawned # This variable gets set my the death scene, so we know the player needs to be respawned
if Global.playerPleaseRespawn == true: if Global.playerPleaseRespawn == true:
if not Global.respawnLocationChosen:
Global.respawnLocationChosen = true
get_node(teddyCollider).disabled = false get_node(teddyCollider).disabled = false
var ramMax = Global.spawnCoords_x.size() - 1 var ramMax = Global.spawnCoords_x.size() - 1
var ramnum = RandomNumberGenerator.new().randi_range(0, ramMax) var ramnum = RandomNumberGenerator.new().randi_range(0, ramMax)