| 03-26-2007, 11:11 PM | #1 |
Well, I know how to get the Z height of terrain using JASS:local location l = Location(x, y) local real height = GetLocationZ(l) Problems arise, however, when I want to get the z height of a point on water. The height returned is always the point on the top of the water, but instead I need to know the z height of the point on the floor of the water. Basically, I need to know the depth of the water. Any help would be appreciated. |
| 03-26-2007, 11:18 PM | #2 |
Well, the only way would be using that fake water model instead of terrain water |
| 03-26-2007, 11:58 PM | #3 |
Create a region that surrounds all water, check if the points are in that region, then subtract the height of the water (It's either 32, 64, or 128) and that's the Z height at the bottom. Depth is not static as far as I know, shallow water should be 32. deep water should be 128*-(terrain level) |
| 03-27-2007, 12:22 AM | #4 |
You are forgetting about using raise/lower tools under water. |
| 03-27-2007, 01:53 AM | #5 | |
Quote:
Aye, I use raise/lower for my water. I'll look into that water model. |
| 03-27-2007, 02:28 AM | #6 |
Ah true, I'm also using flat terrain so I never remember that thing. |
