I am trying to make it so every 2 minutes the player loses control of their character.
So far I have an if statement that checks a boolean before letting the player move but I do not know how to change that boolean to false every 2 minutes.
Create a float variable to keep track of the time. Every update, add Time.deltaTime to it. Once the value is >= 120, make the player lose control.
1 Like
Thanks!