altercode
(Altercode (XPOL555))
May 6, 2022, 4:14pm
1
Issue
Steps to reproduce
Start a thirdperson character with UE 5 (5.0.1) in my case and follow this tutorial: AI Random Roam |AI Move To/Basic Roaming - Unreal Engine 4 Tutorial - YouTube
You will end up with something like this into your AI character
Question
How can i enable the walking/running animation when ai is moving to destination
8 Likes
Hey @altercode ! You may need to create a custom animation blueprint for your NPC. Here are the docs that should get you set up!
2 Likes
altercode
(Altercode (XPOL555))
May 6, 2022, 5:22pm
3
Thank you @Quetzalcodename , i am using the animation blueprint given from the ThirdPerson UE5 assets
altercode
(Altercode (XPOL555))
May 6, 2022, 5:31pm
4
I have somehow discovered a “workaround”:
Be sure you are using the animation blueprint
Go edit the animation blueprint (in case you are using ABP_Quinn u’ll se that you must edit the parent one (the ABP_Manny, the male one)
Somehow the Get current acceleration returns always false
So simply cast to your custom character BP, on cast failed leave everything untouched. On Exec just checks the groundspeed
This is not a solution for me, it is a workaround.
2 Likes
zeaf
(Zeaf)
May 6, 2022, 6:45pm
5
In your AI’s movement component, tick Use Acceleration for Paths and it should work with animation blueprint. You might need Requested Move Use Acceleration enabled as well.
47 Likes
altercode
(Altercode (XPOL555))
May 7, 2022, 12:10am
6
@zeaf Great! That’s the solution. Thank you!!
It also helped for me, thx
AlexAilin
(AlexAilin)
June 13, 2022, 9:20am
8
thank you!your solution helps me a lot!!!
1 Like
Setting “Use Acceleration for Paths” On solves the issue no need to edit the Animation Blueprint.
I’ve checked UE4.27 and having the same value set to ON is not required. the Ai moves the character just fine.
Must be some change for the 5.02 version as author of the tutorial on unreal documentation didn’t need that.
Unreal should have some comment area on the documentation sites. All this info is spread everywhere and not easy to find
5 Likes
Brilliant, thanks @zeaf .
@dorusoftware yep agreed, this solution was buried! Needed to be clearer
Blockout22
(Blockout22)
September 13, 2022, 12:11pm
11
This has just saved me from a massive headache
1 Like
Karin
(夏隣(Karin)@indieGameDev)
September 22, 2022, 3:46pm
12
@zeaf
great! Thank you from Japan
1 Like
DanaFo
(DanaFo)
December 13, 2022, 8:07pm
13
Thank you! This worked fine in another tutorial and suddenly I had to use this fix for a recent effort.
1 Like
@zeaf 2 years later and you saved my life with this solution. THANK YOU SO MUCH.
1 Like
evIanh20
(evIanh20)
June 4, 2024, 7:18pm
15
Guess I’m screwed since this isn’t working
1 Like
Woooooooot, 45 mins before I found this. Thank you!
1 Like
Zeaf:
Acceleration for Paths
Here is where you can find Acceleration for Paths in your Character Blueprint: