I was tampering a little bit with randomising terrain and I've come across some issues:
I guess I could avoid water and use a minimap icon instead, but the first problem would make the terrain look quite bland. I tried using GetLocationZ but it seems to return the "old" Z value. I guess I could store Z changes to the terrain but that'd still be quite difficult to calculate...
Anyone got any ideas or know a good system?
Edit: Perhaps SetTerrainPathable could be used for fixing the water issue, if I can get the Z value.
- Objects, apart from units, do not seem to consider height changes when placed. Eg, placing a doodad or special effect where the ground has been lowered or raised makes it appear floating or buried, respectively.
- Similarily, water effects initially present in the map show even if the terrain is raised. (And the opposite)
- The minimap does not update
- Similarily, water effects initially present in the map show even if the terrain is raised. (And the opposite)
- The minimap does not update
I guess I could avoid water and use a minimap icon instead, but the first problem would make the terrain look quite bland. I tried using GetLocationZ but it seems to return the "old" Z value. I guess I could store Z changes to the terrain but that'd still be quite difficult to calculate...
Anyone got any ideas or know a good system?
Edit: Perhaps SetTerrainPathable could be used for fixing the water issue, if I can get the Z value.