Files
Idiot_du_Village/script/check_point.gd
2025-01-18 10:43:11 +01:00

12 lines
302 B
GDScript

extends Node3D
@export var next_check : Node3D = null
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
func _on_area_3d_body_entered(body: Node3D) -> void:
if (body is CharacterBody3D):
body.set("checkpoint", next_check)