now about AI,
When a unit is lying down, it gives his position as somewhere in his stomach area right? as opposed to right where his feet are when he is standing.( humans are taller then they are wide, unless lyin down) this prevents his position from changing, as he goes from lying to standing.
If I am wrong then you have found the awnser::
If a units position changes when he goes from standing to lying, then just do a little test. place a unit, make sure he cant move, and just getpos him standing and hint format it and then do it again while he is lying down, and then find the distance between the 2 points, and in a script wait until a unit changes position, if he does, measure how much. you will be looking for the exact same value as in the little test. if they are equal, you will know he has changed stance.
BUT!!
if I was right, and it does change to the position in his stomach, it may be harder. I will think about it a little more.
thanks