Well this is odd. I was debugging my map when all of a sudden I found myself that computer counted as active players, shouldn't active players return only the number of the user and not of computer?
The only players AND computers were 1, 14 and 15. So it returned 1, 14 and 15. Odd... or is it supposed to be like this? Since players from 2 - 13 are not playing right? So they don't count.
Yep, computers count as players when you use Active Players. It's actually really useful when testing and you need to see how something works with multiple players.
Unless you need said computer to use command units/use their abilities (AI), it's usually a good idea to omit them, in general. It also just looks better in lobby, cleaner and stuff.
you could throw a unit group into a variable by looping through each player in active players and checking if it is computer controlled. I don't think theres a "players in player group matching condition ..." that sorts out computer players.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Well this is odd. I was debugging my map when all of a sudden I found myself that computer counted as active players, shouldn't active players return only the number of the user and not of computer?
The only players AND computers were 1, 14 and 15. So it returned 1, 14 and 15. Odd... or is it supposed to be like this? Since players from 2 - 13 are not playing right? So they don't count.
@joemart06: Go
Yep, computers count as players when you use Active Players. It's actually really useful when testing and you need to see how something works with multiple players.
Unless you need said computer to use command units/use their abilities (AI), it's usually a good idea to omit them, in general. It also just looks better in lobby, cleaner and stuff.
you could throw a unit group into a variable by looping through each player in active players and checking if it is computer controlled. I don't think theres a "players in player group matching condition ..." that sorts out computer players.