Relative Z-Position - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Relative Z-Position (
/showthread.php?tid=312751)
Relative Z-Position -
red13 - 22.01.2012
Hi,
I'm actually not sure, but I heared about a function, which returns the current distance between my Position and the Ground.(The relative height of the Player)
As I have already said, I am not sure.
May you please let me know, if there exists such a function?
Thanks, red13.
Re: Relative Z-Position -
Konstantinos - 22.01.2012
pawn Код:
// An example I use on a random teleport.
new
Float:randx = float( random( 4000 ) -2000 ), Float:randy = float( random( 4000 ) -2000 );
SetPlayerPosFindZ( playerid, randx, randy, 0.0 );
AW: Relative Z-Position -
red13 - 22.01.2012
Ok, thank you. This was the function, I have seen.
But it does not really solve my problem:
return the Z-Postion.
But nevertheless thank you