14 lines
378 B
GDScript
14 lines
378 B
GDScript
extends Area3D
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
pass # Replace with function body.
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
for body in get_overlapping_bodies():
|
|
if body.is_in_group("human"):
|
|
print("Player collided with a death zone!")
|
|
Global.player_dead()
|