- Messages
- 319
- Country

I've programmed a custom animation for the VC, and the code is listed below. The mouse rect works fine, but the animation doesn't function in FSX. It's all keyframed and tagged in Max, but it doesn't move the switch in the game. Could it be that I've put the <Animation> entry with the <PartInfo> at the bottom of my modeldef.xml file? Do they have to be separated as they are with all the default animations?
<Animation name="AP_Star_LightsMaster" guid="22D4F56D-A4B7-44b8-B754-89380BF2530A" type="Sim" typeparam="" length="50"/>
<PartInfo>
<Name>AP_Star_LightsMaster</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:Lights Master, bool) 50 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<CallbackCode>(L:Lights Master, bool) ! (>L:Lights Master, bool)</CallbackCode>
</MouseRect>
</PartInfo>
<Animation name="AP_Star_LightsMaster" guid="22D4F56D-A4B7-44b8-B754-89380BF2530A" type="Sim" typeparam="" length="50"/>
<PartInfo>
<Name>AP_Star_LightsMaster</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:Lights Master, bool) 50 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<CallbackCode>(L:Lights Master, bool) ! (>L:Lights Master, bool)</CallbackCode>
</MouseRect>
</PartInfo>


