Reference ID
bf3a31a9-4226-dabb-d346-70aaa80d8777
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
AI
Summary
Playing animations on a custom npc behavior do not play
Steps to Reproduce
- Create a npc character definition and set it to custom
- Create an npc_behavior script
- Reference the animation with asset reflection
- Play the animation
Expected Result
Animations play when called
Observed Result
Animations do not play (even though the anim result says its successful)
Platform(s)
windows
if:
Agent := GetAgent[]
Character := Agent.GetFortCharacter[]
Navigatable := Character.GetNavigatable[]
AnimController := Character.GetPlayAnimationController[]
then:
Target := PickRandomPointOnCircleEdge(StartingPosition, PatrolRadius)
AnimController.Play(MoveAnim) # DOES NOT WORK
Navigatable.NavigateTo(MakeNavigationTarget(Target))
AnimController.Play(IdleAnim)
Sleep(RestTime)