Dietmar
Resource contributor
- Messages
- 198
- Country

Dear all,
I have a flying GMAX model which includes a rotating disk. The model works fine and the disk from the model rotated as well in FSX.
Now I want to stop the rotation depending on the sim variable "GENERAL ENG RPM ". Means, the rotation shall stop if the rpm value moves to zero.
The new code I inserted in the modeldef.xml file is this:
<Animation name="engine0_turning" guid="{EDED46CC-34EC-4a09-8E0E-937964751DC4}" length="100" type="Sim" typeParam2="engine0_turning"
typeParam="AutoPlay" />
<PartInfo>
*** *<Name>engine0_turning</Name>
**** <VisibleInRange>
******** <Parameter>
********** ** <Sim>
************** **<Variable>GENERAL ENG RPM:1</Variable>
************ ****<Units>rpm</Units>
********* ***</Sim>
******** </Parameter>
****** **<MinValue>1</MinValue>
**** </VisibleInRange>
</PartInfo>
The new entry shows up correctly in the Animation Manager in GMAX. The selection of it and the export to generate a new model works OK. The following readout RPM %((A:GENERAL ENG RPM:1,rpm) )%!d! in FSX show a value greater than 16000.
So, I expected to see the disk again rotating and to stop turning as soon as the rpm value goes to zero. Nothing like this. The disk does not moving at all. It just stays static.
As a test I assigned the c_gear code in the animation manager to it and the rotation worked during the animation time for the gear function and stopped afterwards. Tells me, that the gear code works and triggers my disk animation correct.
However, I cannot get the function to work as mentioned above. The disk shall always rotate and shall stop at an rpm value zero.
BTW, I also created a new GUID for the new entry also. Any ideas ? Thanks for any help in advance.
Dietmar
I have a flying GMAX model which includes a rotating disk. The model works fine and the disk from the model rotated as well in FSX.
Now I want to stop the rotation depending on the sim variable "GENERAL ENG RPM ". Means, the rotation shall stop if the rpm value moves to zero.
The new code I inserted in the modeldef.xml file is this:
<Animation name="engine0_turning" guid="{EDED46CC-34EC-4a09-8E0E-937964751DC4}" length="100" type="Sim" typeParam2="engine0_turning"
typeParam="AutoPlay" />
<PartInfo>
*** *<Name>engine0_turning</Name>
**** <VisibleInRange>
******** <Parameter>
********** ** <Sim>
************** **<Variable>GENERAL ENG RPM:1</Variable>
************ ****<Units>rpm</Units>
********* ***</Sim>
******** </Parameter>
****** **<MinValue>1</MinValue>
**** </VisibleInRange>
</PartInfo>
The new entry shows up correctly in the Animation Manager in GMAX. The selection of it and the export to generate a new model works OK. The following readout RPM %((A:GENERAL ENG RPM:1,rpm) )%!d! in FSX show a value greater than 16000.
So, I expected to see the disk again rotating and to stop turning as soon as the rpm value goes to zero. Nothing like this. The disk does not moving at all. It just stays static.
As a test I assigned the c_gear code in the animation manager to it and the rotation worked during the animation time for the gear function and stopped afterwards. Tells me, that the gear code works and triggers my disk animation correct.
However, I cannot get the function to work as mentioned above. The disk shall always rotate and shall stop at an rpm value zero.
BTW, I also created a new GUID for the new entry also. Any ideas ? Thanks for any help in advance.
Dietmar


