cawez_puzzlebox/primitives/death/kill_cube.gd
2024-06-22 22:24:36 -04:00

14 lines
291 B
GDScript

extends Area3D
@export var death_direction = Vector3(0,-1,0)
# Called when the node enters the scene tree for the first time.
func _ready():
body_entered.connect(_on_area_entered)
func _on_area_entered(body : Node3D) -> void:
body.death_direction = death_direction
print("Killing!")