SA-MP Forums Archive
Help SetPlayerAttachedObject - 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: Help SetPlayerAttachedObject (/showthread.php?tid=548547)



Help i need your help SetPlayerAttachedObject - quochuy7915 - 30.11.2014

how can i know this code? save where? Is it like saving checkpoint of
savedpositions.txt ?
2, 0.07, 0.017, 0, 88, 75, 0 in SetPlayerAttachedObject

I want to have an object in my character's hand
how do i write this code so that it can be like what i want?


Re: Help SetPlayerAttachedObject - quochuy7915 - 30.11.2014

Help help help


Re: Help SetPlayerAttachedObject - AnthonyTimmers - 30.11.2014

Read the wiki: https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject

In your case it'd be something like:

Код:
SetPlayerAttachedObject(playerid, index, modelid, 5) // Left hand

SetPlayerAttachedObject(playerid, index, modelid, 6) // Right hand
You can add XYZ offsets and Rotation XYZ offsets to better position the object.


Re: Help SetPlayerAttachedObject - quochuy7915 - 30.11.2014

Quote:
Originally Posted by AnthonyTimmers
Посмотреть сообщение
Read the wiki: https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject

In your case it'd be something like:

Код:
SetPlayerAttachedObject(playerid, index, modelid, 5) // Left hand

SetPlayerAttachedObject(playerid, index, modelid, 6) // Right hand
You can add XYZ offsets and Rotation XYZ offsets to better position the object.
Thanks Bro