I am trying to create a fucntion that returns true a bool after a given ammount of time. I am sorry if it was already asked but i could not find anything.
This part does it instantly. I’m not sure what you’re trying to achieve. Do you not know how while statements work? Did you mean to place an “if” instead of a “while” there?
If you’re still unsure about why your code didn’t work, it’s because the program runs the while loop until the condition is false. There is no delay (other than execution time). The same would be true for any loop; you wouldn’t imagine that a loop from 1 to 100 would somehow delay itself.