Actually height detection isn't inside the fps control program =).
Height detection is done by directly reading the map file with a program (which will be available with the sdk) and then the program prints out a list of declarations for an array of strings which basically maps out every grid point on the map. Then the heigh algorithm within the map (the triggers) uses the location of the unit, the slope based on the heights of the grid points, etc. To perfectly return the exact height of the unit. Once again all this will be available with the SDK.
y dont u just get a program to read the w3m say its height, add however much to make it at the head. Then, u make a array of the map in order of pannel starting from the left going up and down to the right in order to have a thing to find it