I want to do an action if an NPC is perfectly still for X amount of seconds.

Any ideas? Thanks.

i havent test it but you could try to create a bp which contain a small sphere collision, add some event EndOverlap (or dispatcher).

Spawn that sphere near your NPC, start a function timer, if event endOverlap get triggered, you cancel the function timer otherwise do x action.

Another way would be to check it speed with movement component from it animation bp but seem to be less ideal.

1 Like

1 Like

In your NPC class start a timer when it stops moving. When the timer completes call your action.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.