Skip to content
User Avatar
#980
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's no error, but the light doesn't change. What's the problem?
You need to: copy the xdb file you need into the map, open it, and check if InternalName and Name are set. If not, set them (set whatever you want, but use Latin characters and no quotes).
Then, in map.xdb, find Ground(Underground)AmbientLights and add the following line:
, where Light is what you put in the Name and InternalName fields.
And only then use the script.
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля