SA-MP Forums Archive
Difference between SetPlayerAttachedObject and AttachObjectToPlayer? - 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: Difference between SetPlayerAttachedObject and AttachObjectToPlayer? (/showthread.php?tid=422321)



Difference between SetPlayerAttachedObject and AttachObjectToPlayer? - newbienoob - 13.03.2013

^title


Respuesta: Difference between SetPlayerAttachedObject and AttachObjectToPlayer? - Parka - 13.03.2013

AttachObjectToPlayer : only will an object attached to a player.

SetPlayerAttachedObject: an object attached to a player and modified the color and scale also the bone.

I say it is more useful SetPlayerAttachedObject.


Re: Difference between SetPlayerAttachedObject and AttachObjectToPlayer? - Vince - 13.03.2013

AttachObjectToPlayer works differently because the object will still be solid (if I remember correctly) and it will move in a very rigid way. The object also cannot be modified. Not sure how it can be used effectively for anything, actually. Maybe if you attach a flat plane to a player's feet or something, I don't know.


Re: Difference between SetPlayerAttachedObject and AttachObjectToPlayer? - Raidensama - 04.02.2015

in SetPlayerAttachedObject object has no collision or could not be touched