SA-MP Forums Archive
What is the position of the head of the character (x, y, z) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What is the position of the head of the character (x, y, z) (/showthread.php?tid=137619)



What is the position of the head of the character (x, y, z) - Noredine - 29.03.2010

What is the position of the head of the character (x, y, z)


Re: What is the position of the head of the character (x, y, z) - Noredine - 29.03.2010

Quote:
Originally Posted by Noredine
What is the position of the head of the character (x, y, z)
I really need it


Re: What is the position of the head of the character (x, y, z) - deather - 29.03.2010

I think so you cant find it except with a mathematical function.

Like this :

o -----> Player 2
|
|
O------>Player 1
|
|

make player 2 to stand on top of Player 1 (with help of jetpack) and tell Player 2 to do /save.
Get his z coordinate and add it with the player 1's z co ordinate.


Re: What is the position of the head of the character (x, y, z) - Noredine - 29.03.2010

Quote:
Originally Posted by |)ЂΩ†{−}ЂR™ – Dare To Die
I think so you cant find it except with a mathematical function.

Like this :

o -----> Player 2
|
|
O------>Player 1
|
|

make player 2 to stand on top of Player 1 (with help of jetpack) and tell Player 2 to do /save.
Get his z coordinate and add it with the player 1's z co ordinate.
Hmm i think it 150 or 100 or 200 No ?


Re: What is the position of the head of the character (x, y, z) - Calgon - 29.03.2010

The player's head position would be dynamic, as they move all the time (well, of course not if they don't move).

It's hard to detect, because people use different skins, so positions of players' heads may be different.


Re: What is the position of the head of the character (x, y, z) - Noredine - 29.03.2010

Quote:
Originally Posted by FreddoX [BINMAN
]
The player's head position would be dynamic, as they move all the time (well, of course not if they don't move).

It's hard to detect, because people use different skins, so positions of players' heads may be different.
I just want the position of head skins, the most frequent
several skins are the same size, I want to position their head is not serious if there is the larger and smaller, I just want the average position


Re: What is the position of the head of the character (x, y, z) - FUNExtreme - 29.03.2010

Stand on a flat location: Tell person 1 to do save
Then aim with your gun at the head of that person and make a function to save that position

Calculate the difference in z co ords and add it to the current position of a player. That will be the head


Re: What is the position of the head of the character (x, y, z) - Rand_Omar - 29.03.2010

I bet he wants this for the "CoD Modern Warfare" server he has.. he wants to create it as third person.. which i want to tell him that.. it will be hard and tough!


Re: What is the position of the head of the character (x, y, z) - [HiC]TheKiller - 29.03.2010

Use a small object and attach it to the player, put the Z offset higher until it is perfect.


Re: What is the position of the head of the character (x, y, z) - ¤Adas¤ - 29.03.2010

Quote:
Originally Posted by [HiC
TheKiller ]
Use a small object and attach it to the player, put the Z offset higher until it is perfect.
Yes, this will be cool. Or use text label.