Files
HorrorGame/Assets/scripts/SpawnPoint.gd

8 lines
193 B
GDScript

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")