[HOW-TO?] Get the altitude - For advanced airplane system
#1

Description
I'm making an Advanced Airplane System, and I need a way to get the altitude of the airplane. I know it's possible, because i've seen a server where in a mission, you need to fly low or the "radar will see you", and a message appears when that happens.

I'm sure that somebody knows.

Edit: I think I know, with Z coord, is that correct?
Reply
#2

That is the z axis.

pawn Код:
new
Float:x,
Float:y,
Float:z;

GetVehiclePos(planeid, x, y, z);

printf("Altitude: %f", z);
Reply
#3

Quote:
Originally Posted by Malice
That is the z axis.

pawn Код:
new
Float:x,
Float:y,
Float:z;

GetVehiclePos(planeid, x, y, z);

printf("Altitude: %f", z);
Thanks , but each Z is 1 feet?? Lol..
Reply
#4

Its a game i doubt that they use real things to measure .

/Artix
Reply
#5

Samp uses M so each z is one meter
Reply
#6

Probably closer to a metre like Niixie said but it might require some experimenting to make it feel right.
Reply
#7

Quote:
Originally Posted by Niixie
Samp uses M so each z is one meter
Ah thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)