- Joined
- Nov 3, 2005
- Messages
- 103
Throughout the whole map I have pedestals that units need to be near in order to capture them. While the units are within the point's range I want the game to add points towards the pedestal for the unit's owner. Once those points are above 100 the pedestal will switch owners to the capturing player or team and they'll begin to obtain resources. When the owner changes other teams can capture it back but they'd have to work backwards, subtracting the owner's points back to 0 so that they can capture it.
Where it gets tricky is when and how to store all the variables. I also don't want the game to add up points when the range of the pedestal finds units owned by different player teams, not just the player so that players would need to fight each other off them.
Unless there's a more efficient way of doing this I'm assuming each pedestal's "point" variable needs to have an array for each separate player team, so that players can have FFA games on the same map.
Any ideas?
Where it gets tricky is when and how to store all the variables. I also don't want the game to add up points when the range of the pedestal finds units owned by different player teams, not just the player so that players would need to fight each other off them.
Unless there's a more efficient way of doing this I'm assuming each pedestal's "point" variable needs to have an array for each separate player team, so that players can have FFA games on the same map.
Any ideas?