- Messages
- 10,163
- Country

Hey guys,
How does FS know how to animate this starter? Where is the code hiding that causes this action? Just (terribly) curious. Right now, to me, it looks like magic. Must be something simple.
and.......... Start will stay on temporarily and then flips back to 'on' position, a cool animation feature. How does FS know to do this? Where is the programming hiding? Is this something directly wired into the FS sim engine?
This is the regular key switch like on the Cessna 172.
EDIT: I take it its something hard wired into FS. Thinking on this, its like knob animation inputs for radios, etc. It must be built into the main sim engine code.
How does FS know how to animate this starter? Where is the code hiding that causes this action? Just (terribly) curious. Right now, to me, it looks like magic. Must be something simple.
and.......... Start will stay on temporarily and then flips back to 'on' position, a cool animation feature. How does FS know to do this? Where is the programming hiding? Is this something directly wired into the FS sim engine?
This is the regular key switch like on the Cessna 172.
Code:
<PartInfo>
<Name>switch_ignition_magnetos</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(A:OLD ENG STARTER:1, enum) 0 max 4 min 25 *</Code>
<Lag>200</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<HelpID>HELPID_GAUGE_MAGNETO_SWITCH</HelpID>
<TooltipID>TOOLTIPTEXT_MAGNETO_SWITCH</TooltipID>
<MouseFlags>LeftSingle+LeftDrag+Wheel</MouseFlags>
<CallbackJumpDragging>
<XMovement>
<Delta>10</Delta>
<EventIdInc>MAGNETO_INCR</EventIdInc>
<EventIdDec>MAGNETO_DECR</EventIdDec>
</XMovement>
</CallbackJumpDragging>
</MouseRect>
</PartInfo>
EDIT: I take it its something hard wired into FS. Thinking on this, its like knob animation inputs for radios, etc. It must be built into the main sim engine code.
Last edited:
