Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setElementInterior/Dimension resets attachElements #3114

Closed
1 task done
Xenius97 opened this issue Jul 10, 2023 · 2 comments
Closed
1 task done

setElementInterior/Dimension resets attachElements #3114

Xenius97 opened this issue Jul 10, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Xenius97
Copy link
Contributor

Describe the bug

Attached elements will reset if element changes interior/dimension. Need to re-attach.

Steps to reproduce

attachElements()
then setElementInterior/Dimension()

Version

Multi Theft Auto v1.6-release-21889 (all prev versions too)

Additional context

No response

Relevant log output

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@Xenius97 Xenius97 added the bug Something isn't working label Jul 10, 2023
@Haxardous
Copy link
Member

https://wiki.multitheftauto.com/wiki/OnElementDimensionChange & https://wiki.multitheftauto.com/wiki/OnElementInteriorChange needs to be used in this scenario as FUNC_AttachEntityToEntity doesn't rely on dimension nor interior.

bool CPhysicalSA::InternalAttachEntityToEntity(DWORD dwEntityInterface, const CVector* vecPosition, const CVector* vecRotation)

@Xenius97
Copy link
Contributor Author

i think this was solved in the past, it works fine now as i see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants