Hi all. Does anyone know how to tag a visibility condition to an Aircraft?
Here’s some code I used in the old FSX days and it worked just fine. But I am not sure how to tag a part with this code to export from Babylon. Using the animation manager doesn’t seem to work but I might be missing something.
<PartInfo>
<Name>inair</Name>
<Visibility>
<Parameter>
<Code>
(A:SIM ON GROUND, bool) ; if{ 0 } els{ 1 }
</Code>
</Parameter>
</Visibility>
</PartInfo>
Thx in advance
Shervin
1 Like
There is a new system now please see below for example
These new sections MUST lie between <ModelBehaviors>
Tags
The COMPONENT ID (VIS_prop_1) is for your reference only
The NODE (prop_1_still_vis) must be applied to the part or hierarchy you need the visibility to act upon, These may of course be nested
These new nodes do NOT Require GUID or KEYFRAME and therefore No Bablylon animation
Hope it helps
<ModelBehaviors>
<Component ID="VIS_prop_1" Node="prop_1_still_vis">
<Visibility>
<Parameter>
<Code>
(A:PROP RPM:1, Rpm) 500 <
</Code>
</Parameter>
</Visibility>
</Component>
</ModelBehaviors>
Obviously this example will set Visibility for all parts under the main Node to ON when Eng 1 RPM Is below 500 Rpm
2 Likes
Thank you!! Will try this out.
1 Like
Finally got some time to work on this. It worked. Thank you so much!
1 Like