- Messages
- 48
- Country

I'm still working on my own project and decided to add some custom smoke.
I found some tutorials on YouTube but they are not up to date, things have changed in the SDK since then.
Does anyone know how to assign a smoke effect to an empty switch (modify systems.cfg, interior.xml, exterior.xml files and create VisualEffectLib)?
I already have a good base for the effect: a working/clickable swhitch in cockpit with this code:
<Component ID="Smoke_FX">
<UseTemplate Name="ASOBO_GT_Anim">
<ANIM_NAME>SmokeSwitch</ANIM_NAME>
<ANIM_CODE>(L:CUSTOM_SMOKE, bool) 2 *</ANIM_CODE>
<ANIM_LENGTH>2</ANIM_LENGTH>
<ANIM_LAG>600</ANIM_LAG>
</UseTemplate>
<Component ID="SmokeSwitch" Node="SmokeSwitch">
<UseTemplate Name="ASOBO_GT_Interaction_LeftSingle_Code">
<LEFT_SINGLE_CODE>(L:CUSTOM_SMOKE, bool) ! (>L:CUSTOM_SMOKE, bool)</LEFT_SINGLE_CODE>
<TOOLTIPID>Smoke On</TOOLTIPID>
</UseTemplate>
</Component>
</Component>
This code added to the exterior xml:
<Component ID="Smoke">
<Component ID="Z142_Smoke_Node" Node="Smoke_Helper">
<UseTemplate Name="ASOBO_GT_FX">
<FX_CODE>(L:CUSTOM_SMOKE, bool) 2 *</FX_CODE>
<FX_GUID>{784ff864-c447-410f-97bf-01fa5911927c}</FX_GUID>
</UseTemplate>
</Component>
</Component>
Smoke_Helper added to exterior model of the aircraft.
These rows added to systems.cfg:
[SMOKESYSTEM]
smoke.0 = 9.28315,-0.720677,-2.013151,fx_smoke_w
[LOCALVARS]
LocalVar.1 = CUSTOM_SMOKE
LocalVarDefault.1 = 0
I already created a simple smoke effect in Effect Editor, but doesn't work outside of developer mode, I have no ide what I miss...
Any help would be greatly appreciated!
I found some tutorials on YouTube but they are not up to date, things have changed in the SDK since then.
Does anyone know how to assign a smoke effect to an empty switch (modify systems.cfg, interior.xml, exterior.xml files and create VisualEffectLib)?
I already have a good base for the effect: a working/clickable swhitch in cockpit with this code:
<Component ID="Smoke_FX">
<UseTemplate Name="ASOBO_GT_Anim">
<ANIM_NAME>SmokeSwitch</ANIM_NAME>
<ANIM_CODE>(L:CUSTOM_SMOKE, bool) 2 *</ANIM_CODE>
<ANIM_LENGTH>2</ANIM_LENGTH>
<ANIM_LAG>600</ANIM_LAG>
</UseTemplate>
<Component ID="SmokeSwitch" Node="SmokeSwitch">
<UseTemplate Name="ASOBO_GT_Interaction_LeftSingle_Code">
<LEFT_SINGLE_CODE>(L:CUSTOM_SMOKE, bool) ! (>L:CUSTOM_SMOKE, bool)</LEFT_SINGLE_CODE>
<TOOLTIPID>Smoke On</TOOLTIPID>
</UseTemplate>
</Component>
</Component>
This code added to the exterior xml:
<Component ID="Smoke">
<Component ID="Z142_Smoke_Node" Node="Smoke_Helper">
<UseTemplate Name="ASOBO_GT_FX">
<FX_CODE>(L:CUSTOM_SMOKE, bool) 2 *</FX_CODE>
<FX_GUID>{784ff864-c447-410f-97bf-01fa5911927c}</FX_GUID>
</UseTemplate>
</Component>
</Component>
Smoke_Helper added to exterior model of the aircraft.
These rows added to systems.cfg:
[SMOKESYSTEM]
smoke.0 = 9.28315,-0.720677,-2.013151,fx_smoke_w
[LOCALVARS]
LocalVar.1 = CUSTOM_SMOKE
LocalVarDefault.1 = 0
I already created a simple smoke effect in Effect Editor, but doesn't work outside of developer mode, I have no ide what I miss...
Any help would be greatly appreciated!
