Can't stop my actor movement

Hello ! I tried to make my mobs run after the closer player for a fixed time ( run time ) with my running counter, then stop a fixed time ( 6 sec ), check the closer player and run again … But their never stop running ! Can’t find why, here is my blue print.

Still need help here, the crazy thing is my counter works because when I start the game, mobs wait 6 sec to run and if they reach a player, they wait 6 sec to re-run. So what’s wrong with the stop movement ?

help ? :confused:

You’re using an event tick which fires every frame. Meaning that you recalculate the mob route within miliseconds of stopping them, so you’re not seeing them stop.

What is it you want to achieve? I may be able to suggest a different setup.

Yup now i’m aware of the tick event, but still don’t undertsand why they stop just a milisecond because I put a counter to change " running " in true and they have to wait the end of the counter before go again in the " move to actor "

And yup i’m open to your suggestion I’m a real beginner in bp :stuck_out_tongue: I want my ais to run x sec after the closer player, wait x seconde, choose the closer player, run x sec, etc etc

Ho and, thx a lot for your answer :smiley: This part of my blueprint make me crazy since a week now.

Have you tried using timelines? They are designed for these kind of mechanics.

Never heard of timeline, I’ll try it today :slight_smile:

Actually someone put this comment as an answer but the tick even don’t expain whythe timer don’t work, cause i use delta time, and even if time line help me i want to undertsand why my counter don’t work :stuck_out_tongue: