How do i attach a fishingrod to a players hand?
#1

Have made a fishing job but i am having a problem with finding out what the cordinates for the right hand is.. any help?
Reply
#2

SetPlayerAttachedObject
Reply
#3

fishingrod = CreateObject(6466, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(fishingrod, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);

Just find a cords and set it properly, hope you can do that.

Do not forget to define your fishing rod.
Put that somewhere after you do /fish
If you want to add animation simply do

ApplyAnimation blah blah
Then Add the code I provided you with.
1.5, = The distance between the player and the object in the X direction.
0.5, = The distance between the player and the object in the Y direction.
0.0 = The distance between the player and the object in the Z direction.
0.0 = The X rotation between the object and the player.
1.5 = The Y rotation between the object and the player.
2 = The Z rotation between the object and the player.

Reference = SAMP WIKI.
Reply
#4

I know that kind of stuff -.- i need the coords..
Reply
#5

Quote:
Originally Posted by sansk
Посмотреть сообщение
I know that kind of stuff -.- i need the coords..
AttachObjectToPlayer(fishingrod, playerid, 0.5, 0.0, 0.0, 0.0, 1.5, 2);
Something like that.

Not quite sure, trying changing the cords test them out time to time.
Reply
#6

ill try to figure it out..
Reply
#7

^ sorry if that didn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)