SetPlayerAttachedObject include - 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: SetPlayerAttachedObject include (
/showthread.php?tid=501546)
SetPlayerAttachedObject include -
Lidor124 - 18.03.2014
Hi
Is there any include or something for SetPlayerAttachedObject for objects but - this object will be set with accurate coordinates and bone on player's body for all skins 0-299?
Example: backpack will set automaticcaly to whatever my skin on my back?
+REP
Re: SetPlayerAttachedObject include -
Snipa - 18.03.2014
Doubt it, you'd probably have to get the offsets by yourself.
Check out
https://sampwiki.blast.hk/wiki/EditObject.
I'd recommend storing the offsets for the object in an array.
Re: SetPlayerAttachedObject include -
Abagail - 18.03.2014
The bad thing about SA:MP is they have not gone through all the skins, - for common player object offsets. You'll have to do it.
Re: SetPlayerAttachedObject include -
Lidor124 - 19.03.2014
Quote:
Originally Posted by Snipa
|
I already have the 0.3e editor with EditObject function.
Btw i saw in other server that they made /tools command and you choose a object to attach on your body in a dialog, then you choose bone and then its set exactly on your body whatever your skin. (From there i took the idea)
So how do i should do it? Adjust each skin for each object? I have about 50+
Is there any editor to save coordinates + objectid and i need only cooy-paste?