Troubles with a task that makes an npc turn left and right

My UE version is 5.5.4.

So here is the deal: i have a loop that makes an npc turn towards one direction (let’s say it turns to the right) then it waits a few seconds, after that it turns the other direction. Then it starts over.

I can make the character snap to the desired direction and the loop would work, but the big thing is that i want to make the transition smooth and gradual.

It works to a degree. Because when it fires my character turns, but it only does so for 1 frame. If you would look at the sreenshot, I tried the thing with the ABS to set gradual rotation, but it kills the loop and it still lasts only 1 frame.

Any ideas anyone?

P.S. the goal for now is to stay within a BTT and make it work. Making it pretty would come later.

Blueprint pic (it’s a long boy, i hope it’ll scale alright)

Solved it via a timer. I have two dupe functions each for opposed direction, it works.

If you’re reading this and wondering, yes you could redo it into one function and make it pretty.

(would have to do 1 pic at a time, because reasons ¯\_(ツ)_/¯)

Timer

Function

Clearing the timer