# infinity loop detected 

**URL:** <https://forums.unrealengine.com/t/infinity-loop-detected/2717333>\
**Category:** Pусский (Russian)\
**Tags:** unreal-engine, question\
**Created:** [April 23, 2026, 12:15am UTC](https://forums.unrealengine.com/t/infinity-loop-detected/2717333 "2026-04-23T00:15:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Coil228](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Coil228](https://forums.unrealengine.com/u/Coil228)\
**Post date:** [April 23, 2026, 12:15am UTC](https://forums.unrealengine.com/t/infinity-loop-detected/2717333/1 "2026-04-23T00:15:59Z")

</div>

Столкнулся с проблемой infinity loop detected, как решить…  
помогите плиз, я чайник

 ![2332323](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/5/135f244e883bafc0659992c2ea4083dd2fdeed9d.png)

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [April 23, 2026, 5:41am UTC](https://forums.unrealengine.com/t/infinity-loop-detected/2717333/2 "2026-04-23T05:41:30Z")

</div>

Hey there @Coil228! Welcome to the community! If the infinite loop is spawning a new wagon infinitely, you may be able to avoid it by setting your `Has Spawned` boolean as the actor is spawned. However if this actor and it’s component `TriggerEnd` is part of a wagon, it could still spawn at least one more thus continuing the cycle.

That and you aren’t checking what the `TriggerEnd` is colliding with, so if it collides with anything at all, (for example the ground, another component, etcetera) it will always spawn another.

---

<div class="post-metadata">

**Author:** ![\_Lynx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_Lynx](https://forums.unrealengine.com/u/_Lynx)\
**Post date:** [May 7, 2026, 1:55pm UTC](https://forums.unrealengine.com/t/infinity-loop-detected/2717333/3 "2026-05-07T13:55:51Z")

</div>

Необходимо чтобы после SpawnActor BP Wagon шло действие, которое бы меняло HasSpawned на True. При нынешней схеме HasSpawned постоянно false, поэтому остальная логика выполняется бесконечно.
