Do triggers detect alliance changes through triggers?
Details:
I've got a problem. In my map are custom teams wich are made trough triggers.
It's an arena game in wich if you die, you are dead for the entire round.
You win a round if all your opponents are dead ofcourse.
This is sort of what i do in the trigger to see if 1 entire team is dead:
I pick every unit within the arena region and i check wether they are an ally or an opponent of colour red.
If it's an ally the integer variable x is set to 1, if it's an enemy the integer variable z is set to 1. Then i check with a condition to see if either of them is 0.
If 1 of them is 0 that means that that team is completely dead.
But somehow it bugs out, i would like to find the bugg myself but i cant find it if it has the following explanation:
In the preset teams all the players are allied, the alliances only change trough triggers.
What if the triggers doesnt detect alliance changes trough triggers but only detect the preset teams.
Details:
I've got a problem. In my map are custom teams wich are made trough triggers.
It's an arena game in wich if you die, you are dead for the entire round.
You win a round if all your opponents are dead ofcourse.
This is sort of what i do in the trigger to see if 1 entire team is dead:
I pick every unit within the arena region and i check wether they are an ally or an opponent of colour red.
If it's an ally the integer variable x is set to 1, if it's an enemy the integer variable z is set to 1. Then i check with a condition to see if either of them is 0.
If 1 of them is 0 that means that that team is completely dead.
But somehow it bugs out, i would like to find the bugg myself but i cant find it if it has the following explanation:
In the preset teams all the players are allied, the alliances only change trough triggers.
What if the triggers doesnt detect alliance changes trough triggers but only detect the preset teams.