I think this only detects cliff level as the difference between various generic cliffs (and/or shallow/deep water) options in terrain menu.
I think this returns integer - so if cliff level is 0, it will show 0; if it is higher by 1, it shows 1. I doubt it returns Z height