Hello there,
I want to set up a simple AI, I have been scratching my head for days but I can’t make it work the way I want.
I need my enemy to stop moving and start shooting when he is at range, I have a service with a boolean checking the distance between my player and enemy, and decorators to switch between the two states.
As of now, my enemy runs to my player and THEN shoots.
My Player and IsPlayerInRange variable are working properly.
Overall blueprint:
IsPlayerInRange service:
Task_Shoot:
Thanks for your time!