So, I have a project where I mixed in stuffs with Tree-tag and melee on it.
The are currently two game modes. Free for all and Team mode.
The game is simply like any other melee, except that you hunt down all of your enemies till none of their units survives.
I made a system for this but failed alot of times.
I've tried what I can but to no avail so I thought I should ask some help here.
I won't post the codes on my triggers since I believe it sucks and perhaps leaks alot. Though, what I did was create a Unitgroup for all players, add every units that are trained or built onto each unit group manually player by player. And pick them up every five seconds to check if there are still any units left.
The conditions were like this, If the number of units are 0 or all of them are dead, then it's the defeat of the player. aaand like I said above, it didn't work.
Help.... anyone ?
The are currently two game modes. Free for all and Team mode.
The game is simply like any other melee, except that you hunt down all of your enemies till none of their units survives.
I made a system for this but failed alot of times.
I've tried what I can but to no avail so I thought I should ask some help here.
I won't post the codes on my triggers since I believe it sucks and perhaps leaks alot. Though, what I did was create a Unitgroup for all players, add every units that are trained or built onto each unit group manually player by player. And pick them up every five seconds to check if there are still any units left.
The conditions were like this, If the number of units are 0 or all of them are dead, then it's the defeat of the player. aaand like I said above, it didn't work.
Help.... anyone ?