martes, 4 de junio de 2024

GDScript para Godot 4.2, cuando algo entra en el area3d borra esta y nodos hijos;

extends Area3D



# 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()

$".".queue_free()

$RigidBody3DPALODEEMPUJE/CollisionShape3D.queue_free()

$"CollisionShape3D BORRARLO SI NO VA".queue_free()

pass # Replace with function body.

No hay comentarios:

Publicar un comentario