can save and load player loc/rot and held guns
This commit is contained in:
@@ -3,13 +3,14 @@ extends Node3D
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
print("CROWN IN SCENE")
|
||||
var target = get_node(SaveLoad.last_hit_path)
|
||||
if target:
|
||||
global_rotation = Vector3(0,0,0)
|
||||
global_transform.origin = target.global_position + Vector3(0,2,0)
|
||||
|
||||
target_change()
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
func target_change():
|
||||
var target = get_node(SaveLoad.last_hit_path)
|
||||
if target:
|
||||
global_rotation = Vector3(0,0,0)
|
||||
global_transform.origin = target.global_position + Vector3(0,2,0)
|
||||
|
||||
Reference in New Issue
Block a user