Hi. I was wondering how I could increment and decrement the max walk speed of a character pawn.
So I basically have an AI which has a default max walk speed of 200. When the AI Perception sight is triggered, the AI sets the target to what it sees and sets max walk speed to 900. This works fine with the behavior tree but doesn’t look that great. I want to gradually increase its speed when its chasing the player and again, gradually decrease its speed as it comes closer to the player. I’m still kinda new to UE4 and not really experienced with using timelines and float curves.
Here are some screenshots of how I’m handling the AI currently:
The AI Controller:
Setting the target and increasing speed:
Simple Behavior Tree:
What would the best way to do this be? I appreciate any kind of help. Have a great day!