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 won't move to all Target Points specified

Hi All -

I've got an AI character moving around by utilizing a navigation mesh, target points, and the "Move to Location" node. One problem....this AI character seems to ONLY pick target points on the RIGHT side of my map (looking at it from a top-down perspective) to navigate to and NEVER the LEFT side of my map.

Here's the scripting within my AI character (which is present in the level when the game starts)...

First, I am storing a reference to all target points in the level: alt text

Off of the target points array "out" pin (blue wire), I extend a wire that goes into this sequence: alt text

So everything technically "works" here. My AI Ghost character DOES move between random target points....I just don't know why he won't traverse to the target points on the LEFT side of my map and am out of ideas.

Some extra info to help assess the issue...

  • My map is completely flat

  • All target points are the exact same height off the ground (Z value of 50)

  • Navigation mesh shows green in editor where I've placed all of my target points

  • All hallways / corridors in my map are the EXACT same width apart

  • If I disconnect the "Random Integer" node from the Array "Get" node and type in a hard value, I'll get weird results. For example, I've got 47 target points...no matter what value I may put into that "Get" node, the target point my "Print String" shows my AI going to is ALWAYS a target point on the RIGHT side of the map...never the left.

Product Version: UE 4.15
Tags:
more ▼

asked May 16 '17 at 04:19 PM in Blueprint Scripting

avatar image

VagrantProfile
121 19 32 41

(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