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"

How to make an AI go back to its original location ?

Hi !

I managed to create an IA witch is following you into it's "moveable zone" if it's seeing you. So, when I'm near the "ennemy" he starts following me. If I go out of his "moveable zone" the ennemy is going back to it's orignial location well. The problem is if the ennemy is reaching me. If he reaches me and then I go out of the moveabe zone, the AI just satys at the end of his moveable zone and is not going back to it's original location... And I would like that if you get out of the moveable zone of the ennemy, he just goes back to his original location.

Could someone help me please ? :)

alt text

Product Version: UE 4.18
question.png (215.7 kB)
more ▼

asked Feb 19 '18 at 02:24 PM in Blueprint Scripting

avatar image

1 2 2

avatar image ngmferguson Feb 22 '18 at 08:12 AM

I assume "Location" is the home location for your AI. Could you explain to me why you do the "Get Random Reachable Point In Radius" rather tha just set the AI to move back to Location?

Additionally, could you set up a print statement right after your "Moving TO the player" 's "AI MoveTo"? To see if On Success is constantly firing after the AI reaches the player, or if it fails as expected.

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

0 answers: sort voted first
Be the first one to answer this question
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