EDIT: Moved to 2024 Bug report
We’ve used the following to animate small things like simple switch covers in MSFS2020 projects. However, when the aircraft are placed in MSFS2024, the part illuminates correctly, but the animation does not move.
This particular gauge is from the Flight Replicas Spitfire Mk.Vb package.
<Component ID="starter_cover" Node="fr_starter_cover">
<UseTemplate Name="ASOBO_GT_Switch_Code">
<PART_ID>fr_starter_cover</PART_ID>
<ANIM_NAME>fr_starter_cover</ANIM_NAME>
<ANIM_CODE>(L:STARTER_COVER,bool) 1 == if{ 100 } els{ 0 }</ANIM_CODE>
<ANIM_LAG>200</ANIM_LAG>
<ANIMTIP_0>Starter Cover</ANIMTIP_0>
<ANIMTIP_1>Starter Cover</ANIMTIP_1>
<ANIM_LENGTH>100</ANIM_LENGTH>
<LEFT_SINGLE_CODE>(L:STARTER_COVER,) ! (>L:STARTER_COVER,)</LEFT_SINGLE_CODE>
</UseTemplate>
</Component>