- Messages
- 4
- Country

Hi all...
I could really do with some help in getting my fuel tank selectors to work as I would like. My twin-engined Lightning T5 burns both No1 Engine & No2 Engines jointly take from a Ventral Tank (cfg:Center1), No1 then burns from the Left Trailing Edge Tank in the flap (LeftAux) before finally taking from the main Left Wing Tank (LeftMain) - No2 Engine likewise does: Ventral (Center1) - Right T/E (RightAux) - Right Wing (RightMain).
In my logic - the No1 engine coding would look something like:
But I'm totally lost at how I need to implement this code into the modeldef - as a CallbackCode? (which is one of the methods I've tried above, endeavouring to tie it to a Fuel Cock)... or do need to put it as a separate code by itself? Whichever way I try it P3D/FSX just seems to take fuel from which Tanks it wants, rather than in the sequence I want. Argggh! what am I doing wrong or missing?
Many thanks
Mike
I could really do with some help in getting my fuel tank selectors to work as I would like. My twin-engined Lightning T5 burns both No1 Engine & No2 Engines jointly take from a Ventral Tank (cfg:Center1), No1 then burns from the Left Trailing Edge Tank in the flap (LeftAux) before finally taking from the main Left Wing Tank (LeftMain) - No2 Engine likewise does: Ventral (Center1) - Right T/E (RightAux) - Right Wing (RightMain).
In my logic - the No1 engine coding would look something like:
Code:
<PartInfo>
<Name>fuel_cock_01</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>GENERAL ENG FUEL VALVE:1</Variable>
<Units>bool</Units>
<Scale>50</Scale>
<Lag>200</Lag>
</Sim>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>No1 Engine Fuel Cock</TooltipText>
<EventID>TOGGLE_FUEL_VALVE_ENG1</EventID>
<CallbackCode>
(A:GENERAL ENG FUEL VALVE:1, bool) 0 == if{ 0 (>K:FUEL_SELECTOR_SET) } els{ 6 (>K:FUEL_SELECTOR_SET)
(A:FUEL TANK CENTER QUANTITY, gallons) 1 < if { 4 (>K:FUEL_SELECTOR_SET)
(A:FUEL TANK LEFT AUX QUANTITY, gallons) 1 < if{ 2 (>K:FUEL_SELECTOR_SET) } } }
</CallbackCode>
</MouseRect>
</PartInfo>
But I'm totally lost at how I need to implement this code into the modeldef - as a CallbackCode? (which is one of the methods I've tried above, endeavouring to tie it to a Fuel Cock)... or do need to put it as a separate code by itself? Whichever way I try it P3D/FSX just seems to take fuel from which Tanks it wants, rather than in the sequence I want. Argggh! what am I doing wrong or missing?
Many thanks
Mike
Last edited:

