Try to play an animation, associated with this character AnimationResult := AnimController.PlayAndAwait(Bots.Spider.Assets.walk2_animation)
Expected Result
The character should animate.
Observed Result
Everything seems to work, except the character doesnât animate. Even verse returns correct events etc.
Except when player is Navigating, has navigated, then the function never completes.
Hey, from my tests youâll need an âAnimation Presetâ asset for it to work
But itâs not in the docs
Here:
Right Click > Create Basic Asset > Blueprint Class :
Put the asset in âAnim Presetâ in your NPC Behavior
This will allow you to use any animation through Verse
But itâs kinda weird, the NPC will always try to go back to the idle animation on the anim preset, which can lead to unwanted behaviors
Still waiting for more info on this
One problem, that remains is, that it doesnât respect the Loop property in animation. So for looping I have to wait for it to stop, and play again. This sadly sometimes results in very quick jumps back to Idle animation and looks like a glitch. I try to prevent this by overlapping the animation a bit, but thatâs rather a sad workaround
Update
Not sure, but it looks like it tries go back to idle (always), even if I run next animation to blend in. The overlap strategy did not give me and good results.
Yep, thatâs exactly the problem I was talking about in the end of the post
So we had the same problem and ended up with the same workaround
Messing with the blending time options helps to get a good visual but is for sure a bug and I hope it gets fixed, the device is awesome anyways
As mentioned above, using the play_animation_controller requires an Animation Preset to be set on the character. This is done by creating a new blueprint that inherits from available presets, currently that is just the BasicLocomotion preset.
As of July 2024 this is not working for me. Animation is not playing even with an âAnim Preset Basic Locomotionâ in the field âAnim Presetâ for the section âNPC Character Modifiersâ inside the NPC character definition.