NPC character not applying random Z rotation when 'relocated'

Hi all, I have character NPCs with simple walking AI that I relocate to visible ‘waypoints’ on screen when certain conditions are met. Here’s the blueprint for it:

I see that I get random values from 0 to 360 but when my NPCs are relocated, they are always relocated facing the same direction, regardless of the random Z rotation value assigned.

Anything I need to check? Thanks in advance.

1 Like

walking AI

Try calling this before applying rotation:

image

It’s possible that the AI controller simply keeps moving after the rotation call and immediately overrides the value.

1 Like

That was it! Thanks mate. :slight_smile:

1 Like