How Can I get the "WhileLoop" working?
I'm trying to use the while loop in a simple script but I get the message :
LogScript:Warning: Runaway loop detected (over 1000000 iterations) MyProjectile_C /Game/Maps/UEDPIE_0_Example_Map.Example_Map:PersistentLevel.MyProjectile_C_8 Function /Game/Blueprints/MyProjectile.MyProjectile_C:ExecuteUbergraph_MyProjectile:001D
I simply want it to execute every frame while a boolean var is true.. but it doesn't look like I know how to properly use it..
Can I request that a Blueprint function be made like the "LoopWhile" one, but only executes every tick ?
answered Mar 27 '14 at 03:30 PM
The while loop will continue to execute within the same execution tick.
What you want to do is hook up an OnTick event in your Actor blueprint and then have a Branch based on your boolean var.
answered Mar 25 '14 at 09:25 PM
Marc Audy STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here