martes, 4 de junio de 2024

INSTANCIAR Y BORRAR A LA VEZ NODOS SECUNDARIOS CON GDSCRIPT PARA GODOT 4.2;

 extends Area3D

var Esferauno = preload("res://INMUEBLES/VERDUGO UNO/VERDUGO SIN CAVEZA/NUEVO VERDUGO SIN CAVEZA10.tscn")


# Called when the node enters the scene tree for the first time.

func _ready():

pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.

func _process(delta):

pass


func _on_area_entered(area):


var parent = get_parent()


var CollisionShape3Dcubo = parent.get_node("CollisionShape3D")


var Esferauno = Esferauno.instantiate()


add_child(Esferauno)


get_node("CollisionShape3D").queue_free()

$"BERDUGO CON ANIMACION Y CAPUCHA".queue_free()

$StaticBody3DREFUERZOPUERTA.queue_free()

pass # Replace with function body.

No hay comentarios:

Publicar un comentario