- Messages
- 10,163
- Country

Does anyone have the time to explain the basics of making a 3 way switch. I know its a lot to ask, and at least 2 posts have been posted on this before, and they drudge along and were about making other switches appear/disappear, nothing to do with an actual 3 way switch in its truest form.
I need to know how to set up its data in the mouse config, how to know how to make one that returns to neutral, and how to make one that has 3 position points.
This is not for a gauge, this is for a 3D object (part, switch) in a plane model, a virtual cockpit.
How do you tell the part to return to a neutral point, or how to make it stay at point 2, point 3, and back to point 1? Surely this is in the mouserect section? or..?
For instance, if a person wanted to make a spoiler switch that has 'lower' or 'raise' with a return-to-neutral switch position. (Type one, lets say).
Another for instance, if one needed to make a dual starter switch for a turbine, how would you make the switch to go from off to on-left, or back to off, and then to on-right, etc.
I just need the basic structure or 'how' this works, and I can surely go from there.
I have this which I found yesterday.
On this one, it only has 2 sections for the mouserect, so would this work in a track like an 'enum' where it has location points 0, 1, and 2? How would it have only 2 locations when the object switch can lock into 3 positions?
Also, Bill Leaming, you were helping this gentleman and you stated that in the top section of this, the Animation section, that it tells you there that this travels through 50 Keyframes total, so I got that. 25 and 25 total being 50 KF's. So if I wanted 100 (I animate my switches at 100 KF's), I would have 50, 50 for my animation.
so confused.......
I need to know how to set up its data in the mouse config, how to know how to make one that returns to neutral, and how to make one that has 3 position points.
This is not for a gauge, this is for a 3D object (part, switch) in a plane model, a virtual cockpit.
How do you tell the part to return to a neutral point, or how to make it stay at point 2, point 3, and back to point 1? Surely this is in the mouserect section? or..?
For instance, if a person wanted to make a spoiler switch that has 'lower' or 'raise' with a return-to-neutral switch position. (Type one, lets say).
Another for instance, if one needed to make a dual starter switch for a turbine, how would you make the switch to go from off to on-left, or back to off, and then to on-right, etc.
I just need the basic structure or 'how' this works, and I can surely go from there.
I have this which I found yesterday.
Code:
<PartInfo>
<Name>switch_light_section_off</Name>
<Animation>
<Parameter>
<Code>
25 (L:switch_light_section_off, number) 25 * +
</Code>
<Lag>950</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Section Light</TooltipText>
<MouseFlags>LeftSingle+RightSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{ (L:switch_light_section_off, enum) -- -1 max (>L:switch_light_section_off, enum) and (L:switch_light_section_on, enum) -- -1 max (>L:switch_light_section_on, enum) }
(M:Event) 'RightSingle' scmp 0 ==
if{ (L:switch_light_section_off, enum) ++ 1 min (>L:switch_light_section_off, enum) and (L:switch_light_section_on, enum) ++ 1 min (>L:switch_light_section_on, enum) }
</CallbackCode>
</MouserRect>
</PartInfo>
On this one, it only has 2 sections for the mouserect, so would this work in a track like an 'enum' where it has location points 0, 1, and 2? How would it have only 2 locations when the object switch can lock into 3 positions?
Also, Bill Leaming, you were helping this gentleman and you stated that in the top section of this, the Animation section, that it tells you there that this travels through 50 Keyframes total, so I got that. 25 and 25 total being 50 KF's. So if I wanted 100 (I animate my switches at 100 KF's), I would have 50, 50 for my animation.
so confused.......
Last edited:
