fixed chest spawn location
This commit is contained in:
@@ -97,9 +97,10 @@ func _ready():
|
||||
var chest_loc = chest_spawners.pick_random()
|
||||
var instance_chest = CHEST_1.instantiate()
|
||||
print("SPAWNING CHEST AT : ",chest_loc.name)
|
||||
get_tree().current_scene.add_child(instance_chest)
|
||||
instance_chest.basis = chest_loc.basis
|
||||
instance_chest.global_position = chest_loc.global_position
|
||||
instance_chest.global_rotation = chest_loc.global_rotation
|
||||
get_tree().current_scene.add_child(instance_chest)
|
||||
number_chests -= 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user