Time elapsed since last key press

How can I measure the time since a key (the jump key for example) was pressed the last time
to prevent pressing a key too many times?

Thanks!

You can use the timer nodes:

  • SetTimer
  • GetTimer
  • ClearTimer

In order to start counting, stop & clearing the timer to be used again from 0.

Also you can use the PaueTimer and UnPauseTImer, but I don’t think your example would even need them!

Check more about them here:

https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseTimers/Blueprints/index.html

-m