SA-MP Forums Archive
Object help - 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: Object help (/showthread.php?tid=517052)



Object help - Shura - 03.06.2014

Hi folks, I have a problem with this, I hope you can help me:

Code pawn:

Код:
ApplyAnimation(playerid,"CARRY","crry_prtial",4.1,0,1,1,1,1);//Anims
SetPlayerAttachedObject( playerid, 4, 1578, 1, 0.391314, 0.579003, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
Images



I want it this way



Re: Object help - Koala818 - 03.06.2014

You must find the exact position. The best way to do this is i think using Slice's FilterScript.

http://forum.sa-mp.com/showthread.ph...ht=hold+studio

You have in this ^ thread all the help you need and all the instructions.


Re: Object help - Dignity - 03.06.2014

pawn Код:
ApplyAnimation(playerid,"CARRY","crry_prtial",4.1,0,1,1,1,1);//Anims
SetPlayerAttachedObject( playerid, 4, 1578, 1, 0.391314, 0.579003, 0.000000, 0.000000, 90.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
Try this.


Re: Object help - Threshold - 03.06.2014

This is actually a special action.

pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
EDIT: Here I go again, rushing into things...
If you are using SetPlayerAttachedObject, then your X, Y or Z rotation is wrong. From the looks of it, your X rotation should be 90.0. (Or should your Y be 90.0?)

I get confused between the 2, but the code should either be:
pawn Код:
SetPlayerAttachedObject(playerid, 4, 1578, 1, 0.391314, 0.579003, 0.000000, 0.000000, 90.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
OR
pawn Код:
SetPlayerAttachedObject(playerid, 4, 1578, 1, 0.391314, 0.579003, 0.000000, 90.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );