AI won't move to all Target Points specified

VagrantProfile
Tue, 16 May 2017 16:19:14 +0000
AI

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:

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

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.

1 post - 1 participant