How do i call a custom event after a certain time has passed since last mouse axis input?

This is the event I’ve made. It resets the camera to a certain position. I want it to happen after a certain time has passed since the players last mouse input on the axis, not a button press. I Tried the Timer Event but its not working for some reason. Ignores the mouse input.

Please help ,

Nadav

Hi there,
what you need is the pretty useful Retriggerable Delay Node.

With the first mouse move input the Delay starts to count down.

During further mouse move the Delay will be reset and starts the countdown over again.

During mouse idle the Delay will not be called anymore and has time to count down to finally call the event.

If you use this in your actor then you need to make sure that the actor receives input and i think you need to handle input priority to sill be able to control the pawn.
If you use this in your PlayerController (It is always better to handle the all the input in there) you can call the event of the controlled pawn (GetControlledPawn Node → cast to your pawn → call event) or any other actor you have access to.

hth :slight_smile:
Marooney

I just realized you actually do the same with the timer (if you call the event on Finished).
So I guess your issue is really just the Input.
Perhaps you really just need to configure the Input Settings (Auto Receive Input) of your actor/pawn.

Thank you! The Retriggerable delay solved it! It’s great to learn about new nodes.

Cheers!