
Posts
835
Respect
195Add +1
Forum Rank
The Decider
Primary Group
Mapper
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!
![]() | Has released one or more maps to the UGX-Mods community. |
players = GetPlayers();
all_players_in = false;
while(!all_players_in)
{
players_in = 0;
for(i = 0;i<players.size;i++)
{
if(players[i] isTouching(triggerEntity)
{
players_in++;
}
}
if(players_in == players.size)
{
all_players_in = true;
}
wait(1);
}![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Something like this? Code SnippetPlaintextplayers = GetPlayers();
all_players_in = false;
players_in = 0;
while(!all_players_in)
{
for(i = 0;i<players.size;i++)
{
if(players[i] isTouching(triggerEntity)
{
players_in++;
}
}
if(players_in == players.size)
{
all_players_in = true;
}
wait(1);
}
players_in = 0;You may need to move thebefore the for loop inside the while loop so that it doesn't do it when the same player walks in so many times... Code SnippetPlaintextplayers_in = 0;