trop de chose jpp
This commit is contained in:
11
script/check_point.gd
Normal file
11
script/check_point.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user