I am trying to create a tower defence game, where towers can heal each other.In general, I am trying to prevent certain UID from being picked, based on their instance variable.
Here is my test file
In the capx there are two factions.
What I want is:
Tower_1 Should'n aim at himself, which has been solved(Thnx Yann for your explanation in other thread <img src="smileys/smiley1.gif" border="0" align="middle" /> )
Tower_1 should aim at the nearest tower, with one exception. He shouldn't aim at Tower_1 with health value 7 or higher.
In the capx, I have tried to insert all Tower_1 UID with health higher than 7 into an array.
Later on, Tower_1 will check if his picked UID exist in the aray. When it exist, it shouldn't pick that UID and should look for the second nearest and check it again and so on.
I have spend like two full days on it and I feel frustrated <img src="smileys/smiley19.gif" border="0" align="middle" />