Deano1973
Resource contributor
- Messages
- 384
- Country
Hi folks, I'm trying to get my Reporter crew's oxygen masks to appear / disappear when passing through 10,000ft altitude using XML and FSX variables. I think I'm missing something in the coding or using a variable that doesn't respond to visibility code - could someone point me in the right direction?
<PartInfo>
<Name>Mask_vis</Name> <!-- show part only when aircraft is above 10,000 feet -->
<Visibility>
<Parameter>
<Code>
(A:INDICATED ALTITUDE,feet) 10000 <= or if{ 1 } els{ 0 }
</Code>
</Parameter>
</Visibility>
</PartInfo>
I used coding generously offered by Mjahn successfully to open an engine bay based on the Exit 2 bool command, so FSDS is responding correctly and I've added mask_vis as required in the necessary FSDS folders, so things are working fine there. It's my inexperience with this that I think is causing the issue.
<PartInfo>
<Name>Mask_vis</Name> <!-- show part only when aircraft is above 10,000 feet -->
<Visibility>
<Parameter>
<Code>
(A:INDICATED ALTITUDE,feet) 10000 <= or if{ 1 } els{ 0 }
</Code>
</Parameter>
</Visibility>
</PartInfo>
I used coding generously offered by Mjahn successfully to open an engine bay based on the Exit 2 bool command, so FSDS is responding correctly and I've added mask_vis as required in the necessary FSDS folders, so things are working fine there. It's my inexperience with this that I think is causing the issue.