plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

Please take a moment to read the platform’s guidelines before you get started!


question

Simbol avatar image
Simbol asked SWS-AlexVletsas commented

[SU9] Model Attachments

Dear Asobo,

I am reading about this new feature with great interest and I have some questions that I cannot find in the documentation.

If I attach another GLTf file via this method, is there a way to hide the attachment via model behaviours? so for example, if I attach some passengers, and I want them to show only when the weight is set, can the main model behaviour file make them disappear / re-appear? what do you do? hide the attachment node? what is the best practice?

In addition, if the attached model has it's own animations, can these be driven via shared L:VARS between the main model and the attachment? again what is the best practice under this circumstances.

Thanks for taking the time to read my questions.

Kind Regards,
Raul

aircraft
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

1 Answer

·
FlyingRaccoon avatar image
FlyingRaccoon answered SWS-AlexVletsas commented

Hello @Simbol

You can hide the attachment and hiding the attachment node is the way to go.

As stated in the doc "Attachments use the SimObject they are attached to", so you can use L vars and simvars.

Regards,
Sylvain

2 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Simbol avatar image Simbol commented ·
Thanks Sylvain,


This is a great addition to the SDK.

Regards,
Raul

0 Likes 0 ·
SWS-AlexVletsas avatar image SWS-AlexVletsas commented ·
Excellent addition!
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.