Check if variable is greater than a value for specified time

Hey guys, is there any way to do this?

Basically want to see if my character is facing and running into a wall for a specific amount of time before he can automatically jump and grab the ledge.

Already got it checking weather the direction of the character is in range of the wall normal. Just want to now check if the player is putting an equal greater amount of pressure on the control stick for a short amount of time before he grabs the ledge.

Cheers

there’s a function called ‘get game time in seconds’. you can create two variables. float StartTime can a call to getGameTimeInSeconds, and then create a second variable, float ElapsedTime. ElapsedTime can equal a call to GetGameTimeInSeconds minus StartTime.