How to make Ai Rotate smootly and right in place?

I tried make it myself But I encounter some hard huddle now
NPC just rotate to World Rotation Value(?) and then turn -180 degree to ‘Z’ position.
I would like the NPC to rotate in place right where it currently is.

Can I get any help here?

You don’t need to use timelines, just a rinterp node would do it :blush:

Here’s a video that might be helpful:

Rotationing movement component or call move component to on the root component


Thanks for reply, but it’s not working.
NPC just gone somewhere really quickly


Thanks for replying…
This video was helpful but it’s not working.

I just want to make my NPC turn smoothly. :frowning:

There should also be setting up a timer with an event dispatcher in the steps

I Can’t find a Event dispatcher node. is it a node?

It’s not a node. Just follow the steps in the video and you’ll see that it’s actually a custom event that triggers the Set Actor Rotation node, which is dispatched from a timer.


Got it what you mean. I set Timer and bind Event.
It stil doesn’t work. NPC just not moving at the End of Patrol Route

The delta time pin of your rinterp node is set to 0. Get the world delta seconds and plug it in there.

Sorry to said this… it still not working :frowning: don’t know why

  • The time vlaue that’s set in your timer is so big, try lowering it to something small like 0.01, and also tick that checkbox for looping
  • Make sure the execution flow is continuous to trigger this part of your code repeatedly, and not just for one frame
  • If you’re still struggling, create an empty project and follow the steps in the video exactly, and then you might notice the difference between your two attempts

Because the target location is 0,0,0, you’d want to plug in get actor location to that pin


it does rotate like ‘Set Actor Rotation node’…

But, Ai just Rotate to value as ‘TimeLine’ first which is ‘0’, and then rotate -90 degree again.

I want Ai rotate directly where it is After triggers the event.

All due respect sir. it’s never working. I try all my best for this.
But it’s even not try to Rotate at all.

But thanks for struggle with me. :slight_smile:

Could you show all the related parts of your blueprint code? Including the corrected “rotate” event of yours and how and when that event gets triggered.

I just make video of this. to explain this issue more clearly.
I’m now trying second method that other guy told me .

To be honest, I couldn’t understand what the issue is, let alone where the issue might be from yout video. What you set up there seems to be working as expected.

I actually asked you to share the screenshot of the corrected code that I suggested you to implemet, along with another screenshot that shows how do you handle the triggering of that custom event of yours that you use to rotate the bot. But the blueprint code you’ve shown in your video isn’t the code we were talking about for a while. I won’t be able to tell what you should do without you providing those.

I don’t have much experience with timelines yet, id say try remove that and set the *over time value on the move component node to at least 1.0

I didn’t expect this make my day all gone.
Still not working :frowning: