Animating AI when moving it to an entity

I’m trying to get Jack to move from his starting position to a box. I’ve configured the starter game as per the example given here:

It works in the sense that Jack moves to the box, but he doesn’t rotate to face it nor does he perform walk/running animations while moving.

To try and animate Jack I’ve added an additional line to the example script to trigger his walking animation, specifically:

AnimGraphComponentRequestBus.Event.SetNamedParameterFloat(self.entityId, ‘Speed’, 1);

Unfortunately this has no affect. When I retrieve the animation graph speed it says it’s still 0.

Does anyone know how to fix this / make it work?


I managed to get it working by connecting to the NavigationComponentNotificationBus inside OnActivate, and then setting the animation graph variable inside the OnTraversalStarted.