
Posts
13
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
rounds = 5 // How ever many rounds you want the players to spend
if(level.round_number == rounds)
level notify( "end_game" );
end_at_round(round)
{
while(1)
{
if(level.round_number == round)
{
level notify( "end_game" );
break;
}
wait(.05);
}
}
level thread end_at_round(2);
Depending on where you put it, you might need to use a while function. Code SnippetPlaintextend_at_round(round)
{
while(1)
{
if(level.round_number == round)
{
level notify( "end_game" );
break;
}
wait(.05);
}
}
At the top of the script, under main(), put: Code SnippetPlaintextlevel thread end_at_round(2);
Make sure to change the round from the function call to the round number you want the game to end at