Why this Door event graph throws infinite loop error? - I recently started!

Hi , I recently started learning Unreal Engine 5.
This might be a noob question but please help me understand why this door Event Graph throws infinite loop error.?
Expectation was to create a door that opens when you begin overlapping the collision box and closes when you end overlapping it.
But when i click on play and reach to door, it crashes and throws error. PFA


Any helpful advice is welcome.

Because the trigger moves with the door. You begin overlap, the door changes rotation and the trigger stops overlapping the character, door rotates back and begin overlap fires again and so on to infinity, therefore the infinite loop.
Parent the trigger to the origin (BP_Door) so that it wouldn’t move.

3 Likes

Thank you. So what i did is removed the box collision from the door and put it on the door frame, and it worked for me.

What i understood from your comment that door’s box collision location changes every time when the door rotates. And that’s why it is creating infinite loop.