Download

AI Various Speeds

Hello, how would I be able to adjust an AI’s speed? I have a follower in the game but so far, it uses the max walk speed, aka, running to me every time. How would I be able to make it that whenever it’s in close proximity, it’ll walk but changes speed to running the further I get?

get distance to player pawn, then do an if statement, input your desired minimum range, then set max walk speed on the character movement component to whatever you want. hope that helps.