Added survivor detection of entering the elevator.
This commit is contained in:
parent
d914608980
commit
ecd79e66e3
2 changed files with 11 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ func _physics_process(delta):
|
|||
velocity.z -= speed * delta
|
||||
move_and_slide()
|
||||
|
||||
|
||||
func _on_area_3d_area_entered(area: Area3D) -> void:
|
||||
pass # Replace with function body.
|
||||
var safety = %ElevatorSafeZone
|
||||
if area == safety:
|
||||
print("Safe!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue