- Messages
- 454
- Country

Hello,
I am trying to make an object appear and disappear with a click on a switch. But I'm new into xml and It's not working in fsx yet. I also have some issues with the mouse click not showing on certain objects. I tried to reset the scale and transform but without success.
I changed some code that looked like FS9 only. But in max which one should I use? (Test_Visibility or Test_ Switch) for the switch and object. Also for the mouse rect attach point?
Thanks
I am trying to make an object appear and disappear with a click on a switch. But I'm new into xml and It's not working in fsx yet. I also have some issues with the mouse click not showing on certain objects. I tried to reset the scale and transform but without success.
Code:
<Animation name="TEST_SWITCH" guid="6fb8860d-52a2-4d84-8041-526c6e256644" length="50" type="Sim" typeParam2="TEST_SWITCH" typeParam="AutoPlay" />
<Animation name="TEST_VISIBILITY" guid="28bd9da6-7e2b-40d2-b00c-f0b30fc5c94c" length="50" type="Sim" typeParam2="TEST_VISIBILITY" typeParam="AutoPlay" />
<PartInfo>
<Name>TEST_SWITCH</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>(L:testswitch, bool) 100 *</Code>
<Lag>600</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<tooltip_id>TEST_L:VARIABLES</tooltip_id>
<callback_code>
(L:testswitch, bool) ! (>L:testswitch, bool)
</callback_code>
</MouseRect>
</PartInfo>
<PartInfo>
<Name>TEST_VISIBILITY</Name>
<VisibleInRange>
<Parameter>
<Code>(L:testswitch, number) 100 *</Code>
<Lag>10</Lag>
</Parameter>
<minvalue>0</minvalue>
<maxvalue>50</maxvalue>
</VisibleInRange>
</PartInfo>
I changed some code that looked like FS9 only. But in max which one should I use? (Test_Visibility or Test_ Switch) for the switch and object. Also for the mouse rect attach point?
Thanks

