Community Forum

Problem with Nightlight2.onCreate

Forum Overview >> Editor

CategoryEditor
Created21.04.2022 15:19


Dmitriy Volkov (DuMooooooH) 21.04.2022 15:19
Hello everyone, please tell me how do I make the houses have lighting at night? I found information that the script Nightlight2.onCreate is responsible for this, but I can't figure out how to add it, sorry for such questions, I'm still new to this business. Do I understand correctly that if I copied the realLights group from the standard maps transform, I just need to register Nightlight2.onCreate on the light source?

Colin Smith (WrinkleysRule) 21.04.2022 16:05
Nightlight2.onCreate is no longer used in FS22, Visibilty condition is now used instead -- see base game for examples eg street lights

Dmitriy Volkov (DuMooooooH) 21.04.2022 16:56
thanks for the clarification,I added standard lighting in the form of an object, not all windows light up in the house model, how do I make the windows that I need glow?

Colin Smith (WrinkleysRule) 21.04.2022 20:19
I presume you mean just having a window texture glowing and not using a light, in which case you can always create your own emissive window texture(s) or use the Lighting effects filters in Photosop/Gimp to create the glow, much like in previous game versions

https://i.imgur.com/td5rgwd.jpg

Dmitriy Volkov (DuMooooooH) 21.04.2022 21:15
I need to have light in the windows when night falls.As on a standard map.

Colin Smith (WrinkleysRule) 21.04.2022 22:48
Then you create your own custom lighting using the glowShader and setting the correct value in the Visibilty condition or copy paste set up from base game placeables -- see base game for examples if customising

Dmitriy Volkov (DuMooooooH) 22.04.2022 21:14
I need to have light in the windows when night falls.As on a standard map.

Dmitriy Volkov (DuMooooooH) 22.04.2022 21:14
I couldn't do it (can you please make a video on YouTube or on the cloud?)


Note: Log in to post. Create a new account here.