I am looking for some help in regards to giving a newly created unit, which will spawn on another unit's death, the ability to search for the closest region/point and then give that unit orders to move towards it.
Right now I have my units following a strict path towards an ultimate goal. I have a huge baneling that spawns smaller ones when it is killed.
How do I make those newly created units follow the same pathway as the original unit?
Is it possible to have the unit search the area for regions/points and then move towards them? I would be happy with the unit back tracking if needed.
The only other way I can see this being possible is to have the unit move towards the end goal (which is what they do now, but they do not follow the same pathway; they hug the walls) and then during that pathway it will eventually cross another region and get new orders. But, the issue I am running into with this is the region shapes. In order for it to not be overly retarded, I would need the ability to make either angled rectangular shapes (which I cannot figure out how to do), or elliptical shaped regions (same issue).
Yeah, it's a TD (blech)...
Thanks in advance.
----------------
I suppose it is possible to add the new units into a private unit group and have other units ignore various regions with conditions. This way only the new units would respond to the retarded regions I will need to paint everywhere. But that is what I am trying to prevent: retarded region painting.
To think that the solution, albeit clunky, would be the ability to paint angled regions.
Perhaps the solution is a combination of circular regions placed properly AND conditions for unit groups...?
I am looking for some help in regards to giving a newly created unit, which will spawn on another unit's death, the ability to search for the closest region/point and then give that unit orders to move towards it.
Right now I have my units following a strict path towards an ultimate goal. I have a huge baneling that spawns smaller ones when it is killed.
How do I make those newly created units follow the same pathway as the original unit?
Is it possible to have the unit search the area for regions/points and then move towards them? I would be happy with the unit back tracking if needed.
The only other way I can see this being possible is to have the unit move towards the end goal (which is what they do now, but they do not follow the same pathway; they hug the walls) and then during that pathway it will eventually cross another region and get new orders. But, the issue I am running into with this is the region shapes. In order for it to not be overly retarded, I would need the ability to make either angled rectangular shapes (which I cannot figure out how to do), or elliptical shaped regions (same issue).
Yeah, it's a TD (blech)...
Thanks in advance.
----------------I suppose it is possible to add the new units into a private unit group and have other units ignore various regions with conditions. This way only the new units would respond to the retarded regions I will need to paint everywhere. But that is what I am trying to prevent: retarded region painting.
To think that the solution, albeit clunky, would be the ability to paint angled regions.
Perhaps the solution is a combination of circular regions placed properly AND conditions for unit groups...?