Download

when i make an ai it follows me and then stops when i am out of sigth and doent patrol

when i was following the ai tutorial and finished it but the ai doesn’t want to rom and it say that the error is in close enough this the graph that i made pls help
4fd9a3388010a3bac5350831136bb2d0c9beedf3.png

See the Cast Failed?

That needs to go somewhere.

Hook the Cast Failed path to a copy of the the Return Node.

Should at least fix that issue :slight_smile:

Screenshot (6).png

now i get this error

That error is about the GetBlackboardValueAsActor() node failing because it is trying to access something that is None.

By the looks of your setup, TargetToFollow is the only thing I see going into a GetBlackboardValueAsActor() node, so I’m guessing TargetToFollow has not been set at the time this function is called.

so what should i do?

Make sure TargetToFollow is valid first :stuck_out_tongue:

I have no idea what the AI tutorial you were following says, but chances are, it will have a point somewhere in it in which the TargetToFollow variable was set.