Posts: 135
Threads: 14
Joined: Mar 2011
Reputation:
0
Hello guys.
One question. Is it possible to get objectid that is used by SetPlayerAttachedObject?
I need it for GetObjectPos.
Posts: 267
Threads: 49
Joined: Dec 2012
Reputation:
0
Yes, create a new variable storing the objectid..
for example: new YourObject = (objectid);
SetPlayerAttachedObject ( playerid, bone, YourObject, bla blablblaba);
Posts: 135
Threads: 14
Joined: Mar 2011
Reputation:
0
18.06.2013, 07:09
(
Последний раз редактировалось Antonio144; 18.06.2013 в 07:49.
)
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.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
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.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
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.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
You'd also have to somehow know where the bones are in every animation, throughout the time of the animation.