How do you prevent air units from diving under water? Air units seem to follow height above the terrain (or sea floor!) and do NOT respect height above water. On the map I made, I "fixed" this problem by making the water really shallow, but surely there must be some better way of preventing air units from diving into the water?! I'd like to put deep water on my map but this stupid problem prevents that.
This seems like it should be a VERY commonly asked question, because this problem is going to pop up almost EVERY time someone makes a map with water on it (the water does not have to be very deep at all before air units turn into "submarines"!), but I can't find the answer anywhere! Google searches and searches of this forum brought me no answers, indeed, I couldn't even find MENTION of this problem. Either no one puts water on their maps or the answer is very obvious and just something I missed...
By default, air units will fly above bottomless pits (if you use the cliff tool and lower the cliff as far as possible, that creates a pit). Water is ignored by air units, it's just a graphical thing just like lava or fog.
You must've changed something on an existing unit, or created a new unit from scratch and didn't modify it correctly, to create this issue.
Anyway, here is how you can change things:
-Check the "mover" part of the unit.
"Fly" means it will fly at a minimum height (it will never fly below the water). It will gain height when flying above a higher cliff level, however.
-Alternatively, you can go to "(Basci) Unit: Flags" and check "Ignore Terrain Height", then set the "Height" manually. It will use the ground of the bottomless pit as a starting point, so a value of 1 wound be well below the normal cliff level. A height level of 9 is the minimum to appear above ground, and 12 is the same height as all air units.
However, the Fly mover should be all you need to get air units to work. But just in case you need a unit (air, ground, whatever), to be a set height, that's how you do it.
Thanks for the info! I didn't change anything at all the the standard units- at least, at first. The latest versions of my map DO change the units, but that's beside the point, because this problem existed when the map was simply a pure melee map. So, I guess the problem is that I am not using "bottomless pits". I have high areas and low areas on my map and the water just covers the low areas.
So what you're saying is that most people have the water areas as bottomless pits then?
Next time I fire up the editor, I'll see if I can find this "ignore terrain height" flag. However, what if the terrain height exceeds the value you use in "ignore terrain height"? I have a very tall volcano on my map, obviously, I don't want units to fly under the terrain.