Added Direction arrow to spawn for orienting the player after spawn and made it hide if DEVMODE is false

This commit is contained in:
2024-09-08 19:41:24 -05:00
parent cce9966214
commit 39abcffb48
6 changed files with 50 additions and 5 deletions

View File

@ -3,5 +3,8 @@ extends Node3D
# Called when the node enters the scene tree for the first time.
func _ready():
GlobalSettings.SetSpawnPoint(self.global_position)
GlobalSettings.SetSpawnPoint(self.global_position, self.global_rotation)
GlobalSettings.Se
get_tree().call_group("Player", "respawn")
if not GlobalSettings.DEVMODE:
$Sprite3D.hide()

View File

@ -8,6 +8,7 @@ var is_paused = false
var current_map
var mapLoader
var SpawnPoint:Vector3
var SpawnRotation:Vector3
var Player_Last_Location = Vector3(0,0,0)
var HasVape = false
@ -78,6 +79,7 @@ func PrintSettings():
func SetCurrentMap(selected_map):
current_map = selected_map
func SetSpawnPoint(pos:Vector3):
func SetSpawnPoint(pos:Vector3, rot:Vector3) -> void:
SpawnPoint = pos
print("Spawn Point set to ", pos)
SpawnRotation = rot
print("Spawn Point set to ", pos, rot)