Created Spawn Point that sets global spawn point and respawns player

This commit is contained in:
Willow Behar
2024-06-02 15:24:45 -05:00
parent 56b19ca909
commit 4679978d4f
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,7 @@
extends Node3D
# Called when the node enters the scene tree for the first time.
func _ready():
GlobalSettings.SetSpawnPoint(self.global_position)
get_tree().call_group("Player", "respawn")