Download

Move pawn to random location

4f6d1a3a7f86d3ccd0b5c2565e9d7f2aabb8cbb1.png

The value of “InitialLocation” changes to what it needs to be and so does “NewLocation”, but when the timer hits 0 nothing happenes and the cube remains at the same place.

[EDIT]
Fixed the problem, switched from “Pawn” to “Character” when creating a new blueprint.
Now there is a new problem, when a new destination is determined the character doesn’t always move there.

This is how the blueprint looks like now
d2c7cd99a87df54f6c77c7f13ef20e14f79519e8.png

Hello 1User12,

Connect an Get Controller node to the Controller input of simpleMoveToLocation.
Also did you place the NavmeshBoundsVolume in your level?

When I do this

a8711f30b6fc2d64b72fe5cf2799fca62e0d4551.png

It says I am not allowed to do that, and yes I do have a NavMeshBoundsVolume.

Event BeginPlay is executed only one time (inBeginPlay), if you in-game change NewLocation nothing will occur… You need set your SimpleMoveToLocation in EventTick with a branch to active/deactivate movement.

Regards!

I already solved it and edited the post, it wasn’t the execution
“Fixed the problem, switched from “Pawn” to “Character” when creating a new blueprint.”

There is a new issue at the bottom of the main post, thank you for trying to help though

The execution pin coming out of the AI move to node is your problem. It works a bit like the Timeline node if you’re familiar with that. The top pin is the Update pin, basically a line of execution to occur while moving. The On Success pin is what happens if the AI gets to the target location successfully and the On Failed pin is executed if the AI cannot reach its location (mesh in the way, for instance).

Another potential issue here is the retriggerable delay. Because you’re outputting from the update execution pin, this is getting retriggered a bunch. It would be better to add a regular delay after the Success/Fail pin, then feed your execution back around to setting location and moving.

Is this it?

8c36be46250bc784330a29b73049d3b733f94bea.png
e991357c963de19e9172a00e4efec1164405db8d.png

Looks like it from what I can see.