how do i detect if unit height is lower than terrain height without any regions?
for example, point A height is 10 and point B height is 20, then the unit height is 15
when unit is in point A nothing will happen but when unit is in point B the unit will explode.
but the main idea here is the condition that always check when the terrain is higher than the unit then if true, unit dies.
one of the main problems here is that when flying unit goes to a higher terrain it automatically changes to a higher height. that will make the condition always false..
for example, point A height is 10 and point B height is 20, then the unit height is 15
when unit is in point A nothing will happen but when unit is in point B the unit will explode.
but the main idea here is the condition that always check when the terrain is higher than the unit then if true, unit dies.
one of the main problems here is that when flying unit goes to a higher terrain it automatically changes to a higher height. that will make the condition always false..