Now a bigger loop is entered, where the game starts playing random animations. Before selecting an animation though, the game first checks to see if the timer has reached a value greater than 900 frames (15 seconds). If so, it displays the text "Natalya: Got one open! Head for the control room, James, I'll do what i can from here." on screen. It also sets a flag which causes another script to open the door, as well as preventing the "Has timer reached 900 frames" check in future iterations of the loop. | Now a bigger loop is entered, where the game starts playing random animations. Before selecting an animation though, the game first checks to see if the timer has reached a value greater than 900 frames (15 seconds). If so, it displays the text "Natalya: Got one open! Head for the control room, James, I'll do what i can from here." on screen. It also sets a flag which causes another script to open the door, as well as preventing the "Has timer reached 900 frames" check in future iterations of the loop. |