- Messages
- 92
- Country

Hi.
I have a problem:
On my craft I have 2 external fuel tanks:
And assigned to them stations loads for weight of empty fuel tanks:
I've created 3 codes for switches, which would empty those fuel tanks and set to 0 weights of those stations loads, as well as hide meshes of those external tanks on 3d model:
As you can see I have one switch for left tank, one for right and one that suppose to empty both of them.
The visibility, tooltips and animation works fine - I checked that by manualny setting station load in menu before starting flight...
..but for some reason I have no respons when i try to click on those switches.
Does anyone have any idea what I've screwed up again?
I have a problem:
On my craft I have 2 external fuel tanks:
Code:
external1 = 3.23, -3.87, 1.93, 33.0, 0.0 //Longitudinal (feet), Lateral (feet), Vertical (feet), Usable(gallons), Unusable (gallons)
external2 = 3.23, 3.87, 1.93, 33.0, 0.0 //Longitudinal (feet), Lateral (feet), Vertical (feet), Usable(gallons), Unusable (gallons)
And assigned to them stations loads for weight of empty fuel tanks:
Code:
station_load.4 = 20, 3.23, -3.87, 1.93 // Weight(lbs), longitudinal, lateral, vertical positions from datum (feet)
station_name.4 = "L Ex Fuel Tank"
station_load.5 = 20, 3.23, 3.87, 1.93 // Weight(lbs), longitudinal, lateral, vertical positions from datum (feet)
station_name.5 = "R Ex Fuel Tank"
I've created 3 codes for switches, which would empty those fuel tanks and set to 0 weights of those stations loads, as well as hide meshes of those external tanks on 3d model:
Code:
<Animation name="Vanship_Left_External_Fuel_Tank" guid="66d187c5-8f82-4089-1155-7d9fdeee3186" type="Sim" typeParam="AutoPlay" length="100" typeParam2="Vanship_Left_External_Fuel_Tank" />
<PartInfo>
<Name>Vanship_Left_External_Fuel_Tank</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(A:PAYLOAD STATION WEIGHT:5, Pounds) 0 > 100 *</Code>
</Parameter>
</Animation>
<Visibility>
<Parameter>
<Code>
(A:PAYLOAD STATION WEIGHT:5, Pounds) 0 >
</Code>
</Parameter>
</Visibility>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>First external fuel tank release switch - Tank is %((A:PAYLOAD STATION WEIGHT:5, Pounds) 0 >)%{if}not %{els}%{end}released</TooltipText>
<CallbackCode>
0 (>A:PAYLOAD STATION WEIGHT:5, Pounds)
0 (>A:FUEL TANK EXTERNAL1 LEVEL, Percent )
</CallbackCode>
</MouseRect>
</PartInfo>
<Animation name="Vanship_Right_External_Fuel_Tank" guid="d24c4837-020e-44a5-9135-1e90d7d98ffc" type="Sim" typeParam="AutoPlay" length="100" typeParam2="Vanship_Right_External_Fuel_Tank" />
<PartInfo>
<Name>Vanship_Right_External_Fuel_Tank</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(A:PAYLOAD STATION WEIGHT:6, Pounds) 0 > 100 *</Code>
</Parameter>
</Animation>
<Visibility>
<Parameter>
<Code>
(A:PAYLOAD STATION WEIGHT:6, Pounds) 0 >
</Code>
</Parameter>
</Visibility>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Second external fuel tank release switch - Tank is %((A:PAYLOAD STATION WEIGHT:6, Pounds) 0 >)%{if}not %{els}%{end}released</TooltipText>
<CallbackCode>
0 (>A:PAYLOAD STATION WEIGHT:6, Pounds)
0 (>A:FUEL TANK EXTERNAL2 LEVEL, Percent )
</CallbackCode>
</MouseRect>
</PartInfo>
<Animation name="Vanship_Both_External_Fuel_Tank" guid="6ac83ec8-3664-469c-771f-912786dcddd2" type="Sim" typeParam="AutoPlay" length="100" typeParam2="Vanship_Both_External_Fuel_Tank" />
<PartInfo>
<Name>Vanship_Both_External_Fuel_Tank</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(A:PAYLOAD STATION WEIGHT:6, Pounds) (A:PAYLOAD STATION WEIGHT:5, Pounds) + 0 > 100 *</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>All external fuel tanks release switch - Tanks are %((A:PAYLOAD STATION WEIGHT:6, Pounds) (A:PAYLOAD STATION WEIGHT:5, Pounds) + 0 >)%{if}not %{els}%{end}released</TooltipText>
<CallbackCode>
0 (>A:PAYLOAD STATION WEIGHT:5, Pounds)
0 (>A:PAYLOAD STATION WEIGHT:6, Pounds)
0 (>A:FUEL TANK EXTERNAL1 LEVEL, Percent )
0 (>A:FUEL TANK EXTERNAL2 LEVEL, Percent )
</CallbackCode>
</MouseRect>
</PartInfo>
As you can see I have one switch for left tank, one for right and one that suppose to empty both of them.
The visibility, tooltips and animation works fine - I checked that by manualny setting station load in menu before starting flight...
..but for some reason I have no respons when i try to click on those switches.
Does anyone have any idea what I've screwed up again?





