How do i attach a fishingrod to a players hand? -
sansk - 15.09.2013
Have made a fishing job but i am having a problem with finding out what the cordinates for the right hand is.. any help?
Re: How do i attach a fishingrod to a players hand? -
Eyce - 15.09.2013
SetPlayerAttachedObject
Re: How do i attach a fishingrod to a players hand? -
DavidLuango - 15.09.2013
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.
Re: How do i attach a fishingrod to a players hand? -
sansk - 15.09.2013
I know that kind of stuff -.- i need the coords..
Re: How do i attach a fishingrod to a players hand? -
DavidLuango - 15.09.2013
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.
Re: How do i attach a fishingrod to a players hand? -
sansk - 15.09.2013
ill try to figure it out..
Re: How do i attach a fishingrod to a players hand? -
DavidLuango - 15.09.2013
^ sorry if that didn't work.