Zeiten
Resource contributor
- Messages
- 444
- Country

Hi.
Have made an animation that can adjust the position of the rudder pedals back and forth.
The only problem is that as always the sims starts with the animation at 0 so I'm trying to figure out a way for the animation to start at 50.
The code is as follows.
Have made an animation that can adjust the position of the rudder pedals back and forth.
The only problem is that as always the sims starts with the animation at 0 so I'm trying to figure out a way for the animation to start at 50.
The code is as follows.
Code:
<PartInfo>
<Name>interior_pedals_adjustment</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:interior pedal adjustment, number)
</Code>
<Lag>200</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Rudder Pedal Adjusment</TooltipText>
<MouseFlags>LeftSingle+LeftDrag</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{
(M:X) (>L:MOUSEPOS, number)
quit
}
(M:Event) 'LeftDrag' scmp 0 ==
if{
(M:X) (L:MOUSEPOS,number) - 0.1 * (L:interior pedal adjustment, number) + 0 max 100 min (>L:interior pedal adjustment, number)
(M:X) (>L:MOUSEPOS,number)
}
</CallbackCode>
</MouseRect>
</PartInfo>
