Handcuff object - 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: Handcuff object (
/showthread.php?tid=331844)
Handcuff object -
Reklez - 06.04.2012
Any one knows about Handcuff object?
This time i will give someone rep++
Re: Handcuff object -
Cjgogo - 06.04.2012
Try this object ID: 19418
Re: Handcuff object -
Reklez - 06.04.2012
Thanks the problem is how to get the x/y/z of the body coordinates
EDIT: rep for you CJGOGO
Re: Handcuff object -
Cjgogo - 06.04.2012
I can remember once I saw a function wich had the following params as IDs(1-for left hand,2-for right hand,3-for the left foot,etc.) but I can't remeber the function's name,and NO,it wasn't AttachObjectToPlayer...
Re: Handcuff object -
Cjgogo - 06.04.2012
Oh,here maybe it helps you:
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject
and
https://sampwiki.blast.hk/wiki/Bone_IDs
Re: Handcuff object -
Reklez - 06.04.2012
Why my mind always think that
Why professional scripters can define or can find the coordinates of body?
Re: Handcuff object -
Mauzen - 06.04.2012
You can just test until you got the right coordinates, this isnt magic.
But just use the function cjgogo posted, attaching the object to the hand bone is most simple.
Re: Handcuff object -
blank. - 06.04.2012
Use the attachments filterscript.
Re: Handcuff object -
Skribblez - 06.04.2012
Just attach it to their hands, every skin has different coordinates to get the perfect position. If you're not lazy then you can attach them one by one on every skin then save the coordinates then create an array.