x

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 can't find way in when he starts far away

Hey Guys,

i have a serious problem with my AI and the Move To Location. Have a big area which only can be entered throu one huge door. When my AI Spawn near by the Door, like 2000m, he find the door and enter the area right. But when he is far away he ran into the fence and go idle. AI can't find the door. I don't know, maybe there is a option to scan a bigger area for a entrance or something?

Thanks, Sam

Product Version: UE 4.18
Tags:
more ▼

asked Dec 29 '17 at 03:32 AM in Blueprint Scripting

avatar image

HitEmUp
174 4 14 17

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

2 answers: sort voted first

It makes sense that there are limits. I'm not sure how to change a threshold and make it work, but I could look into it. I just think the CPU usage will go up worse than linearly.

Another option: you could set waypoints along the wall. Do a distance test to the entrance area. If the AI is too far away from the entrance, path to the furthest reachable waypoint that is closest to the entrance. Keep hopping waypoints until the AI is close enough to the entrance. How graceful that looks will depend on tweaking. There might also be a way to determine if the AI can't find a good path and just kick in when it's confused.

Following a wall til you get to the entrance is pretty natural so it should look pretty good.

more ▼

answered Dec 29 '17 at 05:38 AM

avatar image

Jin_VE
4.4k 32 79 42

avatar image HitEmUp Dec 29 '17 at 03:08 PM

Hey, yes, nice hint. Will do so. You are right, CPU cost are important. Thank you.

I will let this open, maybe there is someone who can tell us more about it, so we can understand whats going on behind the scene... :)

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

Ok, i find a good way to do it. I use "Find Path to Location Synchronisly". The result is a array of waypoints. Then take the last waypoint, it is the nearest, and repeat "Find Path to Location Synchronosly". My function is recursively ;)

more ▼

answered Dec 29 '17 at 03:39 PM

avatar image

HitEmUp
174 4 14 17

(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