Just wondering if anyone has an idea of why this code doesn't work? When using the Shift+D command to drop things, I wanted to add some animation to the aircraft at the same time, eg. doors opening. However, when pushing the button using this code, the object drops successfully, but there is no animation of the button or the doors. Any idea what's wrong?
Thanks!
Thanks!
Code:
<PartInfo>
<Name>droppable_objects</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>(A:ELECTRICAL MASTER BATTERY,bool) 1 == if{ (L:release load, bool) 50 * } els{ 0 }</Code>
<lag>100</lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Drop</TooltipText>
<CallbackCode>(K:RELEASE_DROPPABLE_OBJECTS, bool) ! (>K:RELEASE_DROPPABLE_OBJECTS, bool)</CallbackCode>
</MouseRect>
</PartInfo>
