Animations do not play on custom npc behavior

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

  1. Create a npc character definition and set it to custom
  2. Create an npc_behavior script
  3. Reference the animation with asset reflection
  4. 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)

The status of FORT-765064 incident has been moved from ‘Unconfirmed’ to ‘Needs Triage’.

it worked for me

i copied your code but left off the last 3 lines

        if:
            Agent := GetAgent[]
            Character := Agent.GetFortCharacter[]
            Navigatable := Character.GetNavigatable[]
            AnimController := Character.GetPlayAnimationController[]
        then:
            AnimController.Play(FN_Mannequin_Wave_OneWay)

i stole the wave animation from the example animation island

everything was at the root level

i didn’t change anything in the NPC Character definition

the behaviour script was added to the NPC spawner properties

i can add you as a team member so you can look around my working project if you want