Created Spawn Point that sets global spawn point and respawns player
This commit is contained in:
7
Assets/scripts/SpawnPoint.gd
Normal file
7
Assets/scripts/SpawnPoint.gd
Normal 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")
|
||||
Reference in New Issue
Block a user