provisorio 2

This commit is contained in:
2026-06-13 00:51:57 -03:00
parent 8e09fdbd00
commit fc3d329338
4 changed files with 27 additions and 26 deletions
+6 -10
View File
@@ -2,14 +2,10 @@ extends MeshInstance3D
@export var damage_trap := 1
var Execute:= false
# 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:
while Execute ==false:
body.damage(damage_trap)
Execute = true
await get_tree().create_timer(1.0).timeout
Execute = false
func _on_area_3d_body_entered(body: Node3D) -> void:
while Execute == false:
body.damage(damage_trap)
Execute = true
await get_tree().create_timer(1.0).timeout
Execute = false