Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.





There's an issue: When I click the button the object disappears and then reapears after the 5 seconds. I wanted it to disappear after 5 secs. I've tried everything. If I put > instead of the < the object doesn't even appear. I tried to make a diference between the custom var and FS time var and make the condition work only when that difference is smaller than 5 secs, but no luck...


<Animation name="droptank_switch" guid="548aabdb-2431-4e3f-9a17-0636ac2a8185" type="Sim" typeParam="AutoPlay" length="100" typeParam2="droptank_switch" />
<PartInfo>
<Name>droptank_switch</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:drop, bool) 50 *
</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Drop external fuel tanks</TooltipText>
<CallbackCode>
(L:drop,bool) ! (>L:drop,bool)
(E:LOCAL TIME, seconds) 2 + (>L:droptime,enum)
</CallbackCode>
</MouseRect>
</PartInfo>
//tank visiblity
<PartInfo>
<Name>tank_vis</Name>
<Visibility>
<Parameter>
<Code>
(L:droptime,enum) (E:LOCAL TIME, seconds) <
</Code>
</Parameter>
</Visibility>
</PartInfo>
//Drop animation
<Animation name="tankdrop" guid="19e0cea3-a2c7-4a4c-b6bd-8aba05a5fca4" type="Sim" typeParam="AutoPlay" length="100" typeParam2="tankdrop" />
<PartInfo>
<Name>tankdrop</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:drop,bool)
if{ 100 }
els{ 0 }
</Code>
<Lag>50</Lag>
</Parameter>
</Animation>
</PartInfo>

<PartInfo>
<Name>tank_vis</Name>
<Visibility>
<Parameter>
<Code>
(L:drop,bool) !
if{ 1 }
els{
(L:droptime,enum) (E:LOCAL TIME, seconds) <
if{ 1 }
els{ 0 }
}
</Code>
</Parameter>
</Visibility>
</PartInfo>

Thats cool. So putting in the if 1 then 'animation' then if 1, then zero, will cause it to not function again.
Nice....!