- Messages
- 578
- Country
Hello
I'm trying to implement visibility conditions into my simobjects
I've tried many codes with many structures (old p3d/fsx partinfo sections and new behavior/component sections) but nothing seems to work
I've read a topic showcasing the code structure but still no result
here is my test model, a simple ball over a box, I'm trying to hide the ball on july
so I've taken the liberty to copy / paste your code @Christian Bahr because you said it worked (I'm just testing, there is no intent to distribute what so ever)
still, nothing works
I also tried to use the time of day var but no luck
here is my simobject attached, please help!
thnx in advance
I'm trying to implement visibility conditions into my simobjects
I've tried many codes with many structures (old p3d/fsx partinfo sections and new behavior/component sections) but nothing seems to work
I've read a topic showcasing the code structure but still no result
here is my test model, a simple ball over a box, I'm trying to hide the ball on july
so I've taken the liberty to copy / paste your code @Christian Bahr because you said it worked (I'm just testing, there is no intent to distribute what so ever)
XML:
<?xml version="1.0" encoding="utf-8"?>
<ModelInfo guid="{4bf4cfcc-51dc-4158-bc46-fd6992fdadec}" version="1.1">
<LODS>
<LOD minSize="0" ModelFile="box.gltf"/>
</LODS>
<Component ID="ball" Node="ball">
<Visibility>
<Parameter>
<Code>
(E:LOCAL MONTH OF YEAR, Number) 7 == if{ 0 } els{ 1 }
</Code>
</Parameter>
</Visibility>
</Component>
</ModelInfo>
still, nothing works
I also tried to use the time of day var but no luck
here is my simobject attached, please help!
thnx in advance