3 Position Switch Sample

Hello everyone, Does anyone have a 3-position Asobo GT switch that is L:Var
based and clicks 0 thru 2 Enums? I can see the basic ‘shell’ in Asobo
Behaviors, not the guts of how to write the switch. I need a sample to go by.
I have looked through the Asobo open planes for such a switch and didnt find
one. Many thanks for any help, Bill LHC

I have an example of knobs with 3 fixed positions selected with a scrollwheel,
setting L:vars, if that helps. If I remember correctly, these two pretty much
do the same thing. One uses the ASOBO_GT_Switch_Dummy and one uses
ASOBO_GT_Switch_3States. In reality the Switch_Dummy uses the Switch_3States
template when 3 states are selected. Hopefully this gets you in the right
direction.

                Striker_knobA_003
                Striker_knobA_003
                Horizontal
                3
        2
                0
                1
                Curved
                Headlights
                Headlights
                Headlights
                L
                XMLVAR_LightsHeadlights
            


                    
                        0 (>L:XMLVAR_diffswitch)
                    
                    
                        
                        Striker_knobA_005
                        Striker_knobA_005
                        Horizontal
                        3
                        0
                        0
                        1
                        Curved
                        INOP Driveline selector OPEN
                        INOP Driveline selector TCASE
                        INOP Driveline selector DIFF

                        
                            0 (>L:XMLVAR_diffswitch)
                        
                        
                            1 (>L:XMLVAR_diffswitch)
                        
                        
                            2 (>L:XMLVAR_diffswitch)

And here is what the 3States template looks like, with the minimum necessary
parameters.

Many thanks, WombiiActual, massively appreciated. I had seen the basic
Behavior template, but didnt know how to fill in the details for coding it to
work with L:Vars. Off to check this out. Thanks again!

I was able to get the one working that I had been messing with for a few days.
Changing the top line and making the Node name the same as the Component name
got it working. Add this to the stack of samples.
Node=“SKIRTS_SELECTOR_KNOB”> SKIRTS_SELECTOR_KNOB SKIRTS_SELECTOR_KNOB L
SWITCH_SKIRTS_ANIM Horizontal Curved 1 (>L:SKIRTS_MODERN, bool) 0
(>L:SKIRTS_CLASSIC, bool) 0 (>L:SKIRTS_NONE, bool) 0 (>L:SKIRTS_MODERN, bool)
1 (>L:SKIRTS_CLASSIC, bool) 0 (>L:SKIRTS_NONE, bool) 0 (>L:SKIRTS_MODERN,
bool) 0 (>L:SKIRTS_CLASSIC, bool) 1 (>L:SKIRTS_NONE, bool) MODERN WHEEL SKIRTS
CLASSIC WHEEL SKIRTS OPEN WHEELS battery_switch_on battery_switch_on
battery_switch_on Thanks WombiiActual for the input. Bill LHC