Hello. I've been experimenting with aircraft lights and was wondering if someone could break down the potentiometer lights for me a bit. Here is the template and default settings:
<Template Name="ASOBO_LIGHTING_Switch_Potentiometer_Template">
<DefaultTemplateParameters>
<POTENTIOMETER>1</POTENTIOMETER>
<NODE_ID>LIGHTING_Switch_Potentiometer</NODE_ID>
<ANIM_NAME>LIGHTING_Switch_Potentiometer</ANIM_NAME>
<LEFT_SINGLE_CODE></LEFT_SINGLE_CODE>
<ANIM_CODE>(A:LIGHT POTENTIOMETER:#POTENTIOMETER#, Percent) 0 > 100 *</ANIM_CODE>
<INIT_ON_COND>(A:LIGHT POTENTIOMETER:#POTENTIOMETER#, Percent) 0 ></INIT_ON_COND>
<WWISE_EVENT_1>potentiometer_light_switch_on</WWISE_EVENT_1>
<WWISE_EVENT_2>potentiometer_light_switch_off</WWISE_EVENT_2>
<NORMALIZED_TIME_1>0.1</NORMALIZED_TIME_1>
<NORMALIZED_TIME_2>0.5</NORMALIZED_TIME_2>
</DefaultTemplateParameters>
</UseTemplate>
I'm assuming it works like this, but don't quite have it working yet for some reason...
<POTENTIOMETER>1</POTENTIOMETER> ;referenced in the ANIM_CODE #POTENTIOMETER#
<NODE_ID>LIGHTING_Switch_Potentiometer</NODE_ID> ;The name of the node where the light's adjustments are going to be made (dial/lever, etc).
<ANIM_NAME>LIGHTING_Switch_Potentiometer</ANIM_NAME> ; The name of the animation that the lever or dial uses.
<LEFT_SINGLE_CODE></LEFT_SINGLE_CODE> ;left-click option if needed such as turning a dial into an on/off state.
<ANIM_CODE>(A:LIGHT POTENTIOMETER:#POTENTIOMETER#, Percent) 0 > 100 *</ANIM_CODE> ; increase the value of LIGHT POTENTIOMETER #number# from above.
<INIT_ON_COND>(A:LIGHT POTENTIOMETER:#POTENTIOMETER#, Percent) 0 ></INIT_ON_COND> ; value when the adjustment decreases
<WWISE_EVENT_1>potentiometer_light_switch_on</WWISE_EVENT_1> ;Still a bit lost with this. Should I change this to something like "beacon_light_switch_on" if I want to dim the beacon lights? Had no luck so far.
<WWISE_EVENT_2>potentiometer_light_switch_off</WWISE_EVENT_2>
<NORMALIZED_TIME_1>0.1</NORMALIZED_TIME_1> ; Time between turning the dial/lever and how long it takes for the lighting effects to change.
<NORMALIZED_TIME_2>0.5</NORMALIZED_TIME_2>
So yeah, that's my best guess. Not having any luck with it, though. Can someone point me in the right direction?
<Template Name="ASOBO_LIGHTING_Switch_Potentiometer_Template">
<DefaultTemplateParameters>
<POTENTIOMETER>1</POTENTIOMETER>
<NODE_ID>LIGHTING_Switch_Potentiometer</NODE_ID>
<ANIM_NAME>LIGHTING_Switch_Potentiometer</ANIM_NAME>
<LEFT_SINGLE_CODE></LEFT_SINGLE_CODE>
<ANIM_CODE>(A:LIGHT POTENTIOMETER:#POTENTIOMETER#, Percent) 0 > 100 *</ANIM_CODE>
<INIT_ON_COND>(A:LIGHT POTENTIOMETER:#POTENTIOMETER#, Percent) 0 ></INIT_ON_COND>
<WWISE_EVENT_1>potentiometer_light_switch_on</WWISE_EVENT_1>
<WWISE_EVENT_2>potentiometer_light_switch_off</WWISE_EVENT_2>
<NORMALIZED_TIME_1>0.1</NORMALIZED_TIME_1>
<NORMALIZED_TIME_2>0.5</NORMALIZED_TIME_2>
</DefaultTemplateParameters>
</UseTemplate>
I'm assuming it works like this, but don't quite have it working yet for some reason...
<POTENTIOMETER>1</POTENTIOMETER> ;referenced in the ANIM_CODE #POTENTIOMETER#
<NODE_ID>LIGHTING_Switch_Potentiometer</NODE_ID> ;The name of the node where the light's adjustments are going to be made (dial/lever, etc).
<ANIM_NAME>LIGHTING_Switch_Potentiometer</ANIM_NAME> ; The name of the animation that the lever or dial uses.
<LEFT_SINGLE_CODE></LEFT_SINGLE_CODE> ;left-click option if needed such as turning a dial into an on/off state.
<ANIM_CODE>(A:LIGHT POTENTIOMETER:#POTENTIOMETER#, Percent) 0 > 100 *</ANIM_CODE> ; increase the value of LIGHT POTENTIOMETER #number# from above.
<INIT_ON_COND>(A:LIGHT POTENTIOMETER:#POTENTIOMETER#, Percent) 0 ></INIT_ON_COND> ; value when the adjustment decreases
<WWISE_EVENT_1>potentiometer_light_switch_on</WWISE_EVENT_1> ;Still a bit lost with this. Should I change this to something like "beacon_light_switch_on" if I want to dim the beacon lights? Had no luck so far.
<WWISE_EVENT_2>potentiometer_light_switch_off</WWISE_EVENT_2>
<NORMALIZED_TIME_1>0.1</NORMALIZED_TIME_1> ; Time between turning the dial/lever and how long it takes for the lighting effects to change.
<NORMALIZED_TIME_2>0.5</NORMALIZED_TIME_2>
So yeah, that's my best guess. Not having any luck with it, though. Can someone point me in the right direction?