- Messages
- 230
- Country

Hi evryone,
I try to make a tail wheel, based on the TAG c_wheel, changing the file modeldef.xml ... I am a real beginner in this field! I tried the following code that, of course, does not work ...:
My tail wheel works well, but is always unlocked. My goal is that it is locked with joystick back and unlocked with the joystick pushed forward. Any idea how to make this tail wheel ...?
Thank you for your help...
I try to make a tail wheel, based on the TAG c_wheel, changing the file modeldef.xml ... I am a real beginner in this field! I tried the following code that, of course, does not work ...:
Code:
<PartInfo>
<Name>Morane_c_wheel</Name>
<AnimLength>200</AnimLength>
<Animation>
<Parameter>
<Code>
(A:YOKE Y POSITION) -8192 < if
{0(>K:TOGGLE_TAILWHEEL_LOCK)
(A:GEAR CENTER STEER ANGLE, grads) 0 > if{ (A:GEAR CENTER STEER ANGLE, grads) 0.5 * } els{ (A:GEAR CENTER STEER ANGLE, grads) 0.5 * 200 + }
1(>K:TOGGLE_TAILWHEEL_LOCK)}
els{1(>K:TOGGLE_TAILWHEEL_LOCK)}
</Code>
</Parameter>
</Animation>
<MouseRect>
<TooltipID>TOOLTIPTEXT_STEER_ANGLE</TooltipID>
</MouseRect>
</PartInfo>
My tail wheel works well, but is always unlocked. My goal is that it is locked with joystick back and unlocked with the joystick pushed forward. Any idea how to make this tail wheel ...?
Thank you for your help...


