Sign in to follow this  
Gobe

Please developers add angles to "getPedBonePosition" func.

Recommended Posts

Is a "bone" considered as an element on MTA? I went on MTA's wiki, and I noticed that "bones" aren't in the list. If it isn't, it would be cool to add it as an element because of the "Attachelements" function is interesting for me if it can work with bones.

I was thinking of using GetPedBonePosition function or something called like that, but it doens't give me the angle of it. If I haven't got the angle of it, it won't look realist if I attach, for example, an object to the hand, will it?

I'd like something like this:

Edited by Guest

Share this post


Link to post

With GetBonePosition, we can only get the position of a bone, and not the angle, this means that if I attach for example, a burger to it it won't look realist, cause i ain't got the angle of it, right?

on this video:

The elements are rotating with the bones, it was when we had that old function, it was getting the angle of the bones.

Watch the getPedBonePosition, "Returns the x, y, z world position of the bone. ", not rx, ry, rz. It's really missing to me :( .

Please developers, add angles for the getPedBonePosition, this is really missing to me.

Share this post


Link to post

That video does not use bone attachment. Bones do not have rotation. They are nodes. To work out an angle, you calculate the angle in between two bones.

Share this post


Link to post

Is there a way to check that "transformers" code then I can understand how to do ?

Share this post


Link to post

I think we need attachElementToBone function. From positions of bones we (at least me :)) can calculate angles only in two axes. Using getPedBonePosition needs some scripting to make attaching server-side. In SCM scripting it's possible to attach objects to bones and you can also set offset. If it's possible in SCM scripting, then it should be possible to make something like that in MTA too.

Share this post


Link to post
I think we need attachElementToBone function. From positions of bones we (at least me :)) can calculate angles only in two axes. Using getPedBonePosition needs some scripting to make attaching server-side. In SCM scripting it's possible to attach objects to bones and you can also set offset. If it's possible in SCM scripting, then it should be possible to make something like that in MTA too.

+1 here, I'd love a copy of that SCM function, it would be really cool to me.

Share this post


Link to post

SAMP team managed to do that thing look:

Is there a possibility this function being implented soon in MTA?

Share this post


Link to post
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.