Make a variable in your script such as
var wall_jump_enabled = true
Then add a Timer
as a child to your root node. Set the Timer
's waittime to the time you want wall jumping to be disabled for. Then in your code, when you want to disable walljumping, write
wall_jump_enabled = false
$Timer.start() # The timer node may have a different path in your scene
Now, click the Timer
node, go into the signals tap (top of the right inspector), look for the timeout
signal, double click it, and hit the connect button. Then, in the newly-made function, write
wall_jump_enabled = true
Finally, before the code to check if the player can wall jump, write
if wall_jumping_enabled:
And indent the wall jump-checking code.