Hello again folks! smile
I am now working to get a custom prop "spool up" animation to work. I've completed the animation on a "start up" and "shut down" set of props, did the initial coding in the modeldef using L:var's, created a test gauge and ran the model. Start up looks fine, but I still need to work out the shut down phase of things.
Anyway, I would like to get away from having to use a gauge to trigger the custom animations, and have them trigger when the user starts the engines, (by whatever means, either defaul key commands or gauge) I can't seem to the coding right in the modeldef. I need three condions to be met prior to the L:var animation starting. These are the variables I'm working with.
(A:GENERAL ENG GENERATOR ACTIVE:1, bool)
(A:GENERAL ENG STARTER:1, bool)
(A:GENERAL ENG MIXTURE LEVER POSITION:1, percent) 50 >
Here is the animation code in the modeldef:
And the visiblity code:
The visibility aspect works just fine, but the props animation doesn't trigger when the engines are started using key commands. I've run it through the Infix tool with no complaints, and YES, I did read the SDK, but I seem to be missing something!
Any help would be greatly appreciated!
Thanks!!!
I am now working to get a custom prop "spool up" animation to work. I've completed the animation on a "start up" and "shut down" set of props, did the initial coding in the modeldef using L:var's, created a test gauge and ran the model. Start up looks fine, but I still need to work out the shut down phase of things.
Anyway, I would like to get away from having to use a gauge to trigger the custom animations, and have them trigger when the user starts the engines, (by whatever means, either defaul key commands or gauge) I can't seem to the coding right in the modeldef. I need three condions to be met prior to the L:var animation starting. These are the variables I'm working with.
(A:GENERAL ENG GENERATOR ACTIVE:1, bool)
(A:GENERAL ENG STARTER:1, bool)
(A:GENERAL ENG MIXTURE LEVER POSITION:1, percent) 50 >
Here is the animation code in the modeldef:
Code:
<PartInfo>
<Name>prop0_startup</Name>
<AnimLength>500</AnimLength>
<Animation>
<Parameter>
<Code>
(L:C2_PROP0_STARTUP, bool) 500*
if{
(A:GENERAL ENG GENERATOR ACTIVE:1, bool) 1 >
AND
(A:GENERAL ENG STARTER:1, bool) 1 >
AND
(A:GENERAL ENG MIXTURE LEVER POSITION:1, percent) 50 > }
els{ 0 }
</Code>
<Lag>60</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Left Prop Start</TooltipText>
<MouseFlags>LeftSingle</MouseFlags>
<CallbackCode>
1 (>:L:PROP0_STARTUP, bool)
</CallbackCode>
</MouseRect>
</PartInfo>
And the visiblity code:
Code:
<PartInfo>
<Name>prop0_startup_vis</Name>
<AnimLength>100</AnimLength>
<Visibility>
<Parameter>
<Code>
(A:PROP MAX RPM PERCENT:1, percent) 6.25 <
(A:GENERAL ENG MIXTURE LEVER POSITION:1, percent) 50 > &
</Code>
</Parameter>
</Visibility>
</PartInfo>
The visibility aspect works just fine, but the props animation doesn't trigger when the engines are started using key commands. I've run it through the Infix tool with no complaints, and YES, I did read the SDK, but I seem to be missing something!
Any help would be greatly appreciated!
Thanks!!!





