Download

AI Movement

I have been able to make a character move to a target point using my level blueprint, however now I am trying to replace the character with a cube. I want the cube to move just like the character did. As you can see from my code below, when “F” is pressed, the character (pawn) moved to my target point. When I replace this with the cube, it doesn’t let me attatch it to the “get controller” target (see blueprints below). Instead, it connects to a “target instigater”, which is what goes into the “get controller” target. This doesn’t make the cube move like it should, though, and I don’t know why. Can someone show me the way to properly set this up in blueprint?

Character moving LEVEL BLUEPRINT:
5f46ede39bfae13cd92ed4a875fa4ddf2ca37b93.png
Cube moving LEVEL BLUEPRINT:
pic1.PNG

Thank you.

Your blueprint must derive from Character class to correctly use Simple Move to Location function (‘Class Settings’ -> ‘Parent Class’ dropdown menu, or you can select parent to Character when creating a new blueprint)
Also, make sure you have Nav mesh bounds volume in your scene. You can see your current navigation mesh by clicking ‘Show’ -> ‘Navigation’ in viewport.