Hi
I have a set of units in my map that evolve into better units by turning into a pod, after a short time the new unit comes out, if you kill the pod before the timer then the larger enemy doesn't spawn. Works fine.
However I just had a problem with it as the 2nd unit in the chain is a flying unit, while the rest are land units. Basically it flew over a cliff and turned into a pod at the same time, putting the new unit on the cliff unable to move.
I'm aware that I can check if the ground beneath them is ground pathable but I'm wondering if there are any good ways of checking the area around them, as some cliffs may have partially walkable edges.
Thoughts?
I have a set of units in my map that evolve into better units by turning into a pod, after a short time the new unit comes out, if you kill the pod before the timer then the larger enemy doesn't spawn. Works fine.
However I just had a problem with it as the 2nd unit in the chain is a flying unit, while the rest are land units. Basically it flew over a cliff and turned into a pod at the same time, putting the new unit on the cliff unable to move.
I'm aware that I can check if the ground beneath them is ground pathable but I'm wondering if there are any good ways of checking the area around them, as some cliffs may have partially walkable edges.
Thoughts?