mskhan1991
Resource contributor
- Messages
- 935
- Country

I tried animating a knob from 0-100 frames which rotates the knob, after unsuccessfully looking for the knob in default modeldef.xml, I tried the one provided by Zeiten (Thanks a lot for that modeldef.xml)
The problem is it's not working in sim.
I am using the following code which I don't have much knowledge about, just a few things;
The problem is it's not working in sim.
I am using the following code which I don't have much knowledge about, just a few things;
Code:
<PartInfo>
<Name>MIP_Knob_Kohlsman</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
50 (L:Kohlsman Knob co,enum) +
</Code>
<Lag>100</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Baro Setting Use Mouse Wheel</TooltipText>
<MouseFlags>WheelUp+WheelDown</MouseFlags>
<CallbackCode>
(M:Event) 'WheelDown' scmp 0 ==
if{
(L:Kohlsman Knob co, enum) -- -50 max (>L:Kohlsman Knob co, enum)
(>K:KOHLSMAN_DEC) }
1 (>L:rotary_click,bool)
(M:Event) 'WheelUp' scmp 0 ==
if{
(L:Kohlsman Knob co, enum)) ++ 50 min (>L:Kohlsman Knob co, enum))
(>K:KOHLSMAN_INC) }
1 (>L:rotary_click,bool)
</CallbackCode>
</MouseRect>
</PartInfo>

Still not working! 