SA-MP Forums Archive
Little Help here? ;) - 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: Little Help here? ;) (/showthread.php?tid=275218)



Little Help here? ;) - Soumi - 08.08.2011

I'm currently using the SetPlayerAttachedObject Function to attach the Garbage Bag object to the player hand (Bone 6 - Right hand) But when i tested this, the object wasn't really Placed at the right hand of the player, here check the Screen Shot below.

Is there anyway to attach this object in the right hand of the player correctly?


Re: Little Help here? ;) - scottyishere - 08.08.2011

You might want to try using offsets

pawn Код:
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ);



Re : Little Help here? ;) - Soumi - 08.08.2011

Can u help me setting those offsets to attach the object on the right place?


Re: Little Help here? ;) - Scenario - 08.08.2011

It looks just fine to me...

See what you can dig up on the SA-MP Wiki about using offsets with the "SetPlayerAttachedObject" function.


Re: Little Help here? ;) - AndreT - 08.08.2011

You'll just have to experiment with the offsets yourself. Slice made an offset editor, search for it.

And interesting concept, having prisoners take out trash for you!


Re: Little Help here? ;) - sleepysnowflake - 08.08.2011

http://forum.sa-mp.com/showthread.ph...highlight=Hold

Play with it.


Re : Little Help here? ;) - Soumi - 08.08.2011

oh thanks for the help guys.