Download

Making an AI Character go to a random location until the game ends.

Hey I’m looking for some help on getting an AI Character to move around randomly until the game ends.
Would be very appreciative if you could help me out. Thanks! Right now the AI seems to move to a location once, then doesn’t move again. And he seems to move to the same location every time. I’m fairly new to Unreal Engine 4 stuff.

Here’s what I have so far614c6ed6fcb829ee596a58e15a485dd43159a4da.png

Thanks in advance! :smiley:

Why are you using RandomUnitVector? If I were you, I would use GetRandomPointInNavigableRadius.

Okay. Like I said I’m relatively new to this stuff so wasn’t sure what would work best.
What should I plug into the Origin pin? I appreciate your help.

The origin is the center of the search radius, so the middle of your map should work fine.

I don’t think I’m understanding. How would I find a point on the map and put it into a blueprint as a vector?

Yes, using that node I told you about earlier. That will find a random navigable point, given an origin and search radius.