Added Direction arrow to spawn for orienting the player after spawn and made it hide if DEVMODE is false
This commit is contained in:
@ -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()
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user