Timers not working in Behavior Tree?

Hi,

I have a somewhat simple problem (I think), but not really sure what’s going on. I want to be able to use a timer (Set Timer by Function OR Event), but for some reason in my behavior tree TASK the timer never gets triggered. 's a SS of the blueprint as it’s running. It just gets and gets stuck but never plays the animation:

I’m fairly new when it comes to AI in unreal so maybe you’re just unable to use Timer’s in AI? Anybody run into this before? Thanks so much!

For delayed action you have decorators i think.

Setting time value to 0 or less will clear timer instead of running it immediately.
Source

Thanks for the reply! Yeah I tried to set that value to something other than 0 and it still does the same thing. So I added a breakpoint on the play animation and it still never gets triggered. The below screenshot is after about 30 seconds of this blueprint being triggered:

I wouldn’t imagine this is a bug or anything right?

I think calling it again resets it to that time. Try a Do Once node and reset it from the even you’re trying to get working.

This is correct. You need to call the Timer once or it gets reset. Worked alot on Timers myself so. :stuck_out_tongue:

Ah success! That was exactly it. Thanks so much, that’s really great to know. Yeah it was the fact that the blueprint kept getting fired by the behavior tree and must have kept just resetting the timer.