SA-MP Forums Archive
Attach Object to player. - 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: Attach Object to player. (/showthread.php?tid=367273)



Attach Object to player. - Kalroz - 09.08.2012

Hello all I've seen some scripts where we gets caps/hats/holding objects attached to our body.
But i want to know how could we get the coordinates of the body to attach object.
I know how to create objects with X Y Z pos.
But how attaching coordinates,is there any cmd to get pos or any script?

Waiting for a good reply.....


Re: Attach Object to player. - [MM]RoXoR[FS] - 09.08.2012

https://sampwiki.blast.hk/wiki/AttachObjectToPlayer

Is will automatically find body coordinates.


Re: Attach Object to player. - Kalroz - 09.08.2012

I looked that before but i didnt understand.
How can I get the coordinates if i need to attachobject on player's head.
How can I get the coordinates if i need to attachobject on player's hand.....
Please help me.


Re: Attach Object to player. - XStormiest - 09.08.2012

hmmm.........
using this https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject + https://sampwiki.blast.hk/wiki/AttachObjectToPlayer = attaching the object