Infinite while loop

I have recently gotten a infinte while loop error.

The is input key down target is connected to Get Player Controller.

sorry for bad english btw

I wanted to make full auto using a line trace not using bullets, if someone wants they can also help making shooting for my game

Thanks!

To avoid this you could use a gate.

Generally using a while loop in blueprint sends an infinite loop error, I’d avoid those if you can.

1 Like

Thanks man, this works like a charm!

The reason for the infinite loop error is that there is no condition change during the loop.

This is not the use case for it. A simple branch should do.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.