Download

[RESOLVED] Yet another Infinite loop case (simulate holding a key down)

First attempt at blueprints, woke up the Infinite loop spirit.

I tried many things before calling for help, but in vain.
When I print out “IsPressed” I get “true” or “false” as expected.

Is this the wrong way of setting the condition ? Guess it would work if it wasn’t…

EDIT!: By taking a step back I think I got my answer… I have to release the key inside the while loop… but blueprints don’t seem to work that way,
I’m thinking of “Loop Body” as in


while(condition) {"loop body"}

Any other way to get “do stuff while holding key down” ?