The reason you have to do it this way is you need to give the program time to do other things between the times you run your command. If you just run your one command in an infinite loop, nothing else will happen so your game will not render, your player will not move and most likely your computer would freeze if UE4 didn’t prevent that.
That’s true, if you just want something to happen every frame use the tick event.
Or if you want to loop a certain number of times in the same frame use a for loop. We really need more info about what you want to do to know what would be best.
I am making an app with Unreal Engine. I wanted a command to constantly repeat but I get an error that said I can’t put an infinite loop in. Is there a way around this. Thanks.
You can increase the maximum number of cycles, but you can not allow an infinite loop. Go to Project Settings > General Settings > Maximum Loop Iteration Count.