SetPlayerAttachedObject objectid? - 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 objectid? (
/showthread.php?tid=444692)
SetPlayerAttachedObject objectid? -
Antonio144 - 17.06.2013
Hello guys.
One question. Is it possible to get objectid that is used by SetPlayerAttachedObject?
I need it for GetObjectPos.
Respuesta: SetPlayerAttachedObject objectid? -
Strier - 17.06.2013
Yes, create a new variable storing the objectid..
for example: new YourObject = (objectid);
SetPlayerAttachedObject ( playerid, bone, YourObject, bla blablblaba);
Re: SetPlayerAttachedObject objectid? -
Antonio144 - 18.06.2013
Thanks for replaying.
But that will not work. GetObjectPos requires objectid, YourObject is modelid.
EDIT
There is no objectid since it does not take an object slot.
Is it possible to get position of an object or bone that is used in SetPlayerAttachedObject?
It can be a world position or an offset from player center position (GetPlayerPos).
I only need the Z coordinate.
Re: SetPlayerAttachedObject objectid? -
MP2 - 18.06.2013
It's not a create object, so no, it's not assigned to a slot. You can't get the position of an attach object.
Re: SetPlayerAttachedObject objectid? -
Vince - 18.06.2013
It's possible if you know the bone structure, but that would require importing every single skin into 3DS Max and extracting the dummy information into an array or database.
Re: SetPlayerAttachedObject objectid? -
MP2 - 18.06.2013
You'd also have to somehow know where the bones are in every animation, throughout the time of the animation.