Zeiten
Resource contributor
- Messages
- 444
- Country

Hi!
Am I overthinking things again?
Probably yes!
What I want:
1. A button thats when pressed toggle the starter for the correct engine and stays in place until an certain N1 level is reached and then resets the starter toggle.
What I get:
1. A button that pops back out again straight away (of course...) and does start the engine for the correct engine if the correct circumstances are met (APU, bleed and so on).
2. The toggle engine start will always stay in the (1) position until I press the engine start button again to trigger the 0 (>K:TOGGLE_STARTER1)
What I'm planning to do is making the fuel cutoff valve into a custom L:var as well and then control the 0 (>K:TOGGLE_STARTER1) trough that one instead.
Or are there a way more easier way?
Please don't tell me it way more complicated that this :O
The popping back out is OK.
Think I will manage to code that. Just need to get the basic into place first.
This is for an B-52

Am I overthinking things again?
Probably yes!
What I want:
1. A button thats when pressed toggle the starter for the correct engine and stays in place until an certain N1 level is reached and then resets the starter toggle.
What I get:
1. A button that pops back out again straight away (of course...) and does start the engine for the correct engine if the correct circumstances are met (APU, bleed and so on).
2. The toggle engine start will always stay in the (1) position until I press the engine start button again to trigger the 0 (>K:TOGGLE_STARTER1)
What I'm planning to do is making the fuel cutoff valve into a custom L:var as well and then control the 0 (>K:TOGGLE_STARTER1) trough that one instead.
Or are there a way more easier way?
Please don't tell me it way more complicated that this :O
The popping back out is OK.
Think I will manage to code that. Just need to get the basic into place first.
This is for an B-52


Code:
<PartInfo>
<Name>oh_starter_engine_1</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:oh starter engine 1, enum) 50 *
</Code>
<Lag>300</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Engine 1 Start</TooltipText>
<MouseFlags>LeftSingle+LeftRelease+LeftDrag</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{
1 (A:ELECTRICAL MASTER BATTERY, bool)
1 (>L:oh starter engine 1, enum) and
(L:fe apu bleed air,bool)
(A:APU PCT RPM, percent) 75 >
if{
(>K:TOGGLE_STARTER1) } }
els{
0 (>L:oh starter engine 1, enum)
0 (>K:TOGGLE_STARTER1) and } }
(M:Event) 'LeftRelease' scmp 0 ==
if{ 0 (>L:oh starter engine 1, enum) }
(M:Event) 'LeftDrag' scmp 0 ==
if{ 0 (>L:oh starter engine 1, enum) }
</CallbackCode>
</MouseRect>
</PartInfo>


