altmp / altv-issues

Issues and roadmap for alt:V project
92 stars 17 forks source link

player.AttachToEntity rotation #2217

Closed Avepy closed 5 months ago

Avepy commented 5 months ago

Description of the problem

While trying to use C#

player.AttachToEntity(vehicle, "chassis", "SKEL_ROOT", position, rotation, true, false);

Even if we will pass the rotation, it will set randomly.

Reproduction steps

Try to attach player to vehicle with desired rotation

Expected behaviour

Player rotation to set properly

Additional context

No response

Operating system

Windows 11

Version

release/16.0.57

Crashdump ID

No response

Confirmation of issue's presence

BluePeer commented 5 months ago

can't confirm i get everytime the correct offset roation related to the vehicle entity the rotation value is sure a offset static offset and not a current entity rotation? at current .58 tested with newsync true+false

Avepy commented 5 months ago

Will check this out and let you know, prob didn't realised that it's an offset, thought it is current rotation

Avepy commented 5 months ago

My bad, it works fine, big thanks to @BluePeer