SetPlayerAttachedObject objectid?
#1

Hello guys.
One question. Is it possible to get objectid that is used by SetPlayerAttachedObject?
I need it for GetObjectPos.
Reply
#2

Yes, create a new variable storing the objectid..

for example: new YourObject = (objectid);

SetPlayerAttachedObject ( playerid, bone, YourObject, bla blablblaba);
Reply
#3

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.
Reply
#4

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.
Reply
#5

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.
Reply
#6

You'd also have to somehow know where the bones are in every animation, throughout the time of the animation.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)