12 lines
302 B
GDScript
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)
|