Lots of work on saving, enemies and object positions are now saved
This commit is contained in:
@@ -220,5 +220,20 @@ func drop_loot(number_of_drops):
|
||||
can_die = true
|
||||
|
||||
|
||||
|
||||
func save():
|
||||
var save_dict = {
|
||||
"filename" : get_scene_file_path(),
|
||||
"parent" : get_parent().get_path(),
|
||||
"pos_x" : position.x,
|
||||
"pos_y" : position.y,
|
||||
"pos_z" : position.z,
|
||||
"rot_x" : rotation.x,
|
||||
"rot_y" : rotation.y,
|
||||
"rot_z" : rotation.z,
|
||||
"health" : health
|
||||
}
|
||||
return save_dict
|
||||
|
||||
func _on_area_3d_body_entered(body: Node3D) -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
Reference in New Issue
Block a user