Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AI randomly stops moving


I have recently been creating the boss AI character for my game. I have the boss set up so that it will chase the player around and if its within a certain distance of the player it will a melee attack and if the player was to run away the AI would continue to follow, however, there seems to be an issue where randomly the AI will just stop moving completely and I don't know why or how to stop this from happening as I am new to this.

Does anyone have any suggestions on how I might be able to fix this?

Thanks in advance

Product Version: UE 4.18
more ▼

asked May 27 '18 at 12:00 PM in Blueprint Scripting

avatar image

6 1 1

avatar image ThompsonN13 May 27 '18 at 02:01 PM

some screenshot of your scripts and possibly a video of what occurring would help to start solving your issue. without knowing whats been done its hard to say what to do. it sounds like its a state problem like its not moving on to the next task or that you dont have a task after attacking that lets your enemy check the distance to the player to decide if it should move.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Is your character on the nav mesh at all times during this boss fight? Because if your character is in the air for too long, or if the capsule component is sitting on the very edge of geometry (just outside of the nav mesh), the AI won't know what to do and just sit there, in its "combat" state, unable to move to your location.

Pause the game whenever the AI is standing still and look at its behaviour tree, see what it's doing.

more ▼

answered May 27 '18 at 02:15 PM

avatar image

Andrei Despinoiu
270 4 9 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Make sure your "On Fail" for AIMoveTo is connected to a "Finish Execute" node on each AI task. I wish you luck on your boss fight, reply if you need more info.

more ▼

answered Feb 10 '19 at 02:43 PM

avatar image

1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question