I am making a map similar to the worm war map that comes as a scenario with Warcraft 3: TFT. Anyway, I'm having trouble removing just one unit from the "worms" tail end. I currently have a global array to store the head of the worm for each player, and a global array to store the tail unit (last unit only) for each player. When I add a segment to the worm, I set that new segment to the tail variable after ordering the new segment to follow the segment in front of it. My question is this:
Is there any way that I could get the unit that is currently targeted (being followed) by the tail unit? I need to be able to remove a single unit from the end of the worm. Or maybe is there some other way that I am overlooking?
-Thanks in advance
Is there any way that I could get the unit that is currently targeted (being followed) by the tail unit? I need to be able to remove a single unit from the end of the worm. Or maybe is there some other way that I am overlooking?
-Thanks in advance