|
Okay, so let's get back to questions...
I was looking forward for a way to script the TTS :sort thingy, I'm trying to make the players cut in half and randomly goes to different location.
|
Sorting the players into 2 teams? This should work.
PHP Code:
temp.teams = {
"Team 1", "Team "
};
for (temp.pl: players) {
temp.team = temp.teams[temp.count % temp.teams.size()];
temp.count++;
if (temp.team == "Team 1") {
temp.pl.x= 10;
temp.pl.y = 10;
}
elseif(temp.team == "Team 2") {
temp.pl.x = 20;
temp.pl.y = 20;
}
}