From 86a15184c0ea73007782633f773a44d35b842def Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 28 Aug 2025 19:14:28 +0200 Subject: [PATCH] feat: enemy spawner will now attach spawned enemies to its own parent --- modules/wave_survival/enemy_spawner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wave_survival/enemy_spawner.cpp b/modules/wave_survival/enemy_spawner.cpp index 03b230f5..ce1c8bbb 100644 --- a/modules/wave_survival/enemy_spawner.cpp +++ b/modules/wave_survival/enemy_spawner.cpp @@ -60,7 +60,7 @@ void EnemySpawner::on_phase_change(bool hunt) { return; } unit_3d->set_patrol_path(this->patrol_path); - add_child(unit_3d); + callable_mp(cast_to(this->region), &Node::add_child).call_deferred(unit_3d, false, INTERNAL_MODE_DISABLED); unit_3d->set_global_transform(this->get_global_transform()); }