Skip to content
User Avatar
#981
Auto-translated
Heroist
I don't understand something. I want to change the lighting on the map. I do it like this:

SetAmbientLight (0, "/Lights/_(AmbientLight)/BrighterDay.xdb#xpointer(/AmbientLight)" , nil, 0)

There is no error, but the light doesn't change. What's the problem?
1. Add this lighting as one of the elements in GroundAmbientLights (or UndergroundAmbientLights if you plan to change the lighting in a dungeon) in the map properties.
2. The lighting must have a script name (InternalName); for this lighting, it's "BrighterDay"; for others, see the corresponding files. If there is no name, create one.
3. You need to write the script name in the function.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4