Christian Bahr
Resource contributor
- Messages
- 994
- Country
I'm in the process of getting some of my 3-D models ready for the MFS. A few of these models are said to have some intelligence. That worked with the windsock and a clock. The clock shows the local time and the windsock turns into the wind when the wind direction changes. So far so good, but ...
But I just got stuck with one topic: Objects that should only be displayed at a certain time of the Year/Day ...
Specifically, it is about a parasol as a SimObject that is on the visitor terrace ...
This umbrella should be on the terrace in the summer months. However, the umbrella should not be visible in the winter months.
I know that the MFS works with so-called model bevahiors. But the old recipes from the P3D modeldef.xml no longer work. Here is the contents of the XML file:
Does anyone have any advice on what the VisCode should look like, which contains a season's condition?
But I just got stuck with one topic: Objects that should only be displayed at a certain time of the Year/Day ...
Specifically, it is about a parasol as a SimObject that is on the visitor terrace ...
This umbrella should be on the terrace in the summer months. However, the umbrella should not be visible in the winter months.
I know that the MFS works with so-called model bevahiors. But the old recipes from the P3D modeldef.xml no longer work. Here is the contents of the XML file:
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo version="1.1" guid="{e0c85e87-f282-4a4d-9f09-6c995c95a776}">
<LODS>
<LOD MinSize="0" ModelFile="edle_sonnenschirm.gltf"></LOD>
</LODS>
<PartInfo>
<Name>edle_sonnenschirm_sommer</Name>
<Visibility>
<Parameter>
<Code>
(E:ZULU MONTH OF YEAR, number) 6.0 >= (E:ZULU MONTH OF YEAR, number) 8.0 <= and if{ 1 } els{ 0 }
</Code>
</Parameter>
</Visibility>
</PartInfo>
</ModelInfo>
Does anyone have any advice on what the VisCode should look like, which contains a season's condition?