Z position to bottom of Player? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Z position to bottom of Player? (
/showthread.php?tid=477051)
Z position to bottom of Player? -
Mattakil - 21.11.2013
Hi all,
Go ahead, bitch at me for not searching this, but I didn't really know what to search for, and in an attempt to save me time, I will ask you people if anyone knows it :P
I wanna create an object on the ground, at the player's feet. So, what is the Z position to the player's feet? (I know itll change per object to work properly)
Help would be appreciated.
EDIT: Shit, I just realized I put this in the wrong section LOL..Apologies.
Re: Z position to bottom of Player? - Emmet_ - 21.11.2013
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
z -= 0.7;
// Then use z accordingly.