Quote:
Originally Posted by BeckzyBoi
Position in the air-Position on the ground?
Surely you have at some point in your life done subtraction?..
|
Ok then smartass...what do i use for a reference point for ground Z if there is nothing (like another player standing on the ground) to use as reference? The abandoned airfield ground Z is ~ 16. The top of Chiliad is ~400. If I'm in a plane and want to create an explosion...on the ground...directly underneath me...how would I determine the Z value to use for that explosion and put it exactly at ground level in either place? Obviously you can't use 0 because 99% of the time thats underneath the map. If there was a player on the ground, I would GetPlayerPos that person and use their Z value. Thats a no brainer.
What I want to know it how to figure out where exact ground level is depending on the pilot's current X,Y...without using a vehicle or player as a reference point. Since you seem to know the answer, I'd LOVE to hear your insight on the subject.