attaching object above head
#1

Hey guys.
Im once again in need of your help. I have been searching wikipedia for SetPlayerAttachedObject since I wanted to attach an object above players head, so I tried using to bone id 3, but instead of it placing the object above the head, it placed the object in the middle of the head. I also tried something like this:
Код:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerAttachedObject(playerid,0,1274,3,x,y,z+1);
but in this case the object didnt even spawn. any ideas, please?
Thank you.
Reply
#2

The coordinates are relative offsets, not absolute world coordinates. In a nutshell, this means that the middle of the head has coords 0.0, 0.0, 0.0.
Reply
#3

Thank you for reply.
I also thought of this but I was not sure how to set the coordinate offset in that case only for coordinate z to +1. Any ideas please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)