- Messages
- 85
- Country

Hi
I would like to create a battery switch that can only power up the aircraft when an "contacte key" (anti-theft device) is turned on.
The battery switch works fine, but I can't seem to prevent it from operating when the contacte key isn't turned. Since I'm not an XML expert, a little help would be appreciated.
Below is a screenshot in Blender as well as the lines from my interior.xml file.
Thanks in advance.
<UseTemplate Name="ASOBO_ELECTRICAL_Battery_Template">
<NODE_ID>ELECTRICAL_SWITCH_Battery_Master_1</NODE_ID>
<ANIM_NAME>ELECTRICAL_SWITCH_Battery_Master_1</ANIM_NAME>
<MIN_VALUE>0</MIN_VALUE>
<MAX_VALUE>16</MAX_VALUE>
</UseTemplate>
<!-- contact ON and OFF -->
<Animation guid="9f69e02b-ec38-45b0-b0c0-09ce0d77f01c" length="50" name="contact" type="Sim" typeparam="AutoPlay" typeparam2="contact"/>
<PartInfo>
<Name>contact</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:contact, bool) 50 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>CLEF DE CONTACT</TooltipText>
<CallbackCode>
(L:contact, bool) 0 ==
if{ 1 (>L:contact, bool) }
els{ 0 (>L:contact, bool) }
</CallbackCode>
</MouseRect>
</PartInfo>
I would like to create a battery switch that can only power up the aircraft when an "contacte key" (anti-theft device) is turned on.
The battery switch works fine, but I can't seem to prevent it from operating when the contacte key isn't turned. Since I'm not an XML expert, a little help would be appreciated.
Below is a screenshot in Blender as well as the lines from my interior.xml file.
Thanks in advance.
<UseTemplate Name="ASOBO_ELECTRICAL_Battery_Template">
<NODE_ID>ELECTRICAL_SWITCH_Battery_Master_1</NODE_ID>
<ANIM_NAME>ELECTRICAL_SWITCH_Battery_Master_1</ANIM_NAME>
<MIN_VALUE>0</MIN_VALUE>
<MAX_VALUE>16</MAX_VALUE>
</UseTemplate>
<!-- contact ON and OFF -->
<Animation guid="9f69e02b-ec38-45b0-b0c0-09ce0d77f01c" length="50" name="contact" type="Sim" typeparam="AutoPlay" typeparam2="contact"/>
<PartInfo>
<Name>contact</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:contact, bool) 50 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>CLEF DE CONTACT</TooltipText>
<CallbackCode>
(L:contact, bool) 0 ==
if{ 1 (>L:contact, bool) }
els{ 0 (>L:contact, bool) }
</CallbackCode>
</MouseRect>
</PartInfo>
