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



AttachPlayerObjectToPlayer() - Incubator - 05.11.2011

Well, it is defined as native in a_samp, nothing said about it being non functioning in the wiki, just instead of doing its job it prints "AttachPlayerObjectToPlayer removed in 0.3. I can only attach global objects"
Removed in 0.3? I thought this function was added in 0.3c/0.3b, why was it removed?
What's the deal with it and can we have it back please?


Re: AttachPlayerObjectToPlayer() - CyNiC - 05.11.2011

Because a new function was added with another engine.

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

https://sampforum.blast.hk/showthread.php?tid=182317


Re: AttachPlayerObjectToPlayer() - Incubator - 05.11.2011

Yes but.. what if I don't want to attach it to a bone but attach it the same way as AttachObjectToPlayer does?


Re: AttachPlayerObjectToPlayer() - CyNiC - 05.11.2011

In this way you can put the object where you want with better animation.

The old function is not accessible anymore.


Re: AttachPlayerObjectToPlayer() - Incubator - 05.11.2011

I don't want animations, I just want it to be next to the player.