- Messages
- 19
- Country
Hi everyone, I am new here . I currently started to work on an airplane I modeled , but I struggle with the coding a button that is lighting up a decal when switching it on.
So far I mostly got everything working with templates and those Simvars.
The landing light button when switched on lights up the decal, using the "ASOBO_LIGHTING_Switch_Light_Landing_Template" for the button and "ASOBO_SAFETY_Indicator_Caution_Template" for the decal.
But I also got a passenger heater button that ideally should light light up a decal, but there is no corresponding Simvar.
So the button for the heater is switched on using this template:
I was hoping to light up the decal using also a template and use the ANIM_NAME from the other template , but it doesnt work at all. This was my attempt, but it is wrong. I admit I am not a coder .
How do I get the decal to light up then ? Thank you for any tips.
So far I mostly got everything working with templates and those Simvars.
The landing light button when switched on lights up the decal, using the "ASOBO_LIGHTING_Switch_Light_Landing_Template" for the button and "ASOBO_SAFETY_Indicator_Caution_Template" for the decal.
But I also got a passenger heater button that ideally should light light up a decal, but there is no corresponding Simvar.
So the button for the heater is switched on using this template:
Code:
<UseTemplate Name="ASOBO_PASSENGER_Switch_Cabin_Heat_Template">
<NODE_ID>PASSENGER_Switch_Cabin_Heat_1</NODE_ID>
<ANIM_NAME>PASSENGER_Switch_Cabin_Heat_1</ANIM_NAME>
</UseTemplate>
I was hoping to light up the decal using also a template and use the ANIM_NAME from the other template , but it doesnt work at all. This was my attempt, but it is wrong. I admit I am not a coder .
Code:
<UseTemplate Name="ASOBO_GT_Material_Emissive_Code">
<NODE_ID>LIGHTING_Heaton</NODE_ID>
<EMISSIVE_CODE>(L:PASSENGER_Switch_Cabin_Heat_1:1, bool)
</EMISSIVE_CODE>
</UseTemplate>
How do I get the decal to light up then ? Thank you for any tips.