Hello everyone,
i'm having some issues with visibility in MSFS SimObjects. Essentially what i want to do, is show/hide an object by year. whats funny is that this worked perfectly well, but it broke before christmas (after an update, unless i did something terribly wrong and dont recall).
anyone see anything wrong with this code:
------------------
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo version="1.1" guid="{a7e57515-27c1-4a27-80b3-fd22a273cd5d}">
<LODS>
<LOD MinSize="10" ModelFile="ATR-72.gltf"/>
</LODS>
<ModelBehaviors>
<Component ID="ATR-72" Node="atr-72">
<Visibility>
<Parameter>
<Code>(A:LOCAL YEAR, Number) 2007 >= (A:LOCAL YEAR, Number) 2025 <= and if{ 1 } els{ 0 }</Code>
</Parameter>
</Visibility>
</Component>
</ModelBehaviors>
</ModelInfo>
---------------------------------------------
For general info, it was just "<Behaviors>", changing it doesnt seem to matter... :S
thanks for the help
ben
i'm having some issues with visibility in MSFS SimObjects. Essentially what i want to do, is show/hide an object by year. whats funny is that this worked perfectly well, but it broke before christmas (after an update, unless i did something terribly wrong and dont recall).
anyone see anything wrong with this code:
------------------
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo version="1.1" guid="{a7e57515-27c1-4a27-80b3-fd22a273cd5d}">
<LODS>
<LOD MinSize="10" ModelFile="ATR-72.gltf"/>
</LODS>
<ModelBehaviors>
<Component ID="ATR-72" Node="atr-72">
<Visibility>
<Parameter>
<Code>(A:LOCAL YEAR, Number) 2007 >= (A:LOCAL YEAR, Number) 2025 <= and if{ 1 } els{ 0 }</Code>
</Parameter>
</Visibility>
</Component>
</ModelBehaviors>
</ModelInfo>
---------------------------------------------
For general info, it was just "<Behaviors>", changing it doesnt seem to matter... :S
thanks for the help
ben