Hi, this is the current code.
""
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo version="1.1" guid="{2adbaf56-831d-4dbb-a613-dd5c0f7ac0d6}">
<ModelBehavior>
<!-- Animation defined in your GLTF -->
<Animations>
<Animation name="marshaller_2" guid="c04ab74e-9c20-4f75-a414-4ae2b8068522" type="Standard">
<Parameter>
<Code>(A:LIGHT TAXI, Bool)</Code>
</Parameter>
</Animation>
</Animations>
<!-- Behavior logic driven directly by aircraft SimVar -->
<Behaviors>
<Behavior>
<Component ID="TaxiLightTrigger">
<UseTemplate Name="ASOBO_GT_Condition">
<Condition>(A:LIGHT TAXI, Bool) 1 ==</Condition>
</UseTemplate>
<OnTrue>
<AnimPlay Name="marshaller_2"/>
</OnTrue>
<OnFalse>
<AnimStop Name="marshaller_2"/>
</OnFalse>
</Component>
</Behavior>
</Behaviors>
</ModelBehavior>
<!-- LOD definition -->
<LODS>
<LOD MinSize="0" ModelFile="military_marshaller_2_lod0.gltf"/>
</LODS>
</ModelInfo>
""
this feel like provided by AI, most of the tags do not exist in the SDK documentation
the following should be correct, i suppose you have at least 2 animations, one when the marshaller is doing something (marshaller_2), another one when the marshaller is idle
The key is (L:marshaller_activity) . You can use any other var, but those
must be available on your simobject. So L: var are ok (they are global variables), the most abused one is
XMLVAR_YokeHidden1 because several aircraft have it too
or E var like the one related to time e.g.
E:TIME OF DAY
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo>
<Animation name="marshaller_2" guid="c04ab74e-9c20-4f75-a414-4ae2b8068522" type="Standard"/>
<Animation name="Idle1" guid="CC18178F-6A78-4D2F-9436-57AB48A9383E" type="Standard"/>
<AnimGraph>
<DefaultState name="Idle"/>
<BlendTreeState name="Idle" doBlend="False">
<Animations>
<Animation guid="CC18178F-6A78-4D2F-9436-57AB48A9383E" loop ="True" speed="1"/>
</Animations>
</BlendTreeState>
<BlendTreeState name="doing_stuff">
<Animations>
<Animation guid="c04ab74e-9c20-4f75-a414-4ae2b8068522" loop ="True" speed="1"/>
</Animations>
</BlendTreeState>
<Transition start="Idle" end ="doing_stuff">
<Condition>(L:marshaller_activity) 1 ==</Condition>
</Transition>
<Transition start="doing_stuff" end ="Idle">
<Condition>(L:marshaller_activity) 0 ==</Condition>
</Transition>
</AnimGraph>
</ModelInfo>