AI - attack is looped

When my AI gets closer to me, even though I have the correct distances when executing the animation montage, it loops

Captura de pantalla 2023-04-13 164010

Hi @LHARZE1 ,

We don’t know what happen if you don’t show your related script / montage looks like.

but if your montage is looped, maybe you should check your montage section first.
image
check the link between your montage, if it look like the image below or different than the first image, you should clear the link (if its not intended).
image

if you don’t have the montage section tab, you can open it by going into Window > Montage Sections.
image

If that is not the case, maybe there is something wrong with your script. Like you don’t give the enemy delay after attacking so the enemy always attack without delay or something else.

If thats not the case please reply and give us more information.

how do you trigger the animation?
if you trigger on “collide” you might be colliding multiple times. put a breakpoint.