refactored bullet script, broke shotgun pellets which will need to be fixed
This commit is contained in:
@@ -2,4 +2,8 @@ extends Area3D
|
||||
|
||||
func _on_body_exited(body: Node3D) -> void:
|
||||
print("PLAYER OUT OF BOUNDS")
|
||||
get_tree().current_scene.die()
|
||||
var level_control = get_tree().current_scene
|
||||
if level_control.gamemode.die_on_leaving_bounds == true:
|
||||
get_tree().current_scene.die()
|
||||
else:
|
||||
body.global_position = body.last_ground_pos + Vector3(0,10,0)
|
||||
|
||||
Reference in New Issue
Block a user