Quote from: Kernel64 on March 06, 2010, 09:45:43 AMWhat I also don't know how is getting the AI to determine the human player's int value.
Code Select
int hdGetOpponent (int player) {
unitgroup enemyGroup;
int enemyPlayer = -1;
enemyGroup = UnitGroupAlliance(player, c_unitAllianceEnemy, null, null, c_noMaxCount);
enemyPlayer = AIGetPlayerGroup(enemyGroup);
return enemyPlayer;
}
I haven't tested it for more than 2 players, but it works flawlessly 1v1.