So I decided to try out the DayNightModels("", "") thing and it's really cool when it works properly but I get some odd bugs...
This is called at map init and appears to work:
And this line is called for heroes to add line of sight. The model is simply an omnilight with a stand animation
It causes some problems:
When commented away everything works fine. Are there any known problems with SetDayNightModels? Or is my lighting model corrupt somehow? I've tried another one though, and it caused the same problem. Anyway, I'm uploading it and screenshots of the second issue... Thanks in advance for any help
Edit: It appears to be because there are too many lighting models in the same area... Could this be true? I spawned roughly 20 heroes in the same area and then it got buggy. When it's down to 4 it works just fine
This is called at map init and appears to work:
Code:
call SetDayNightModels("", "")
call FogEnable(false)
call FogMaskEnable(false)
And this line is called for heroes to add line of sight. The model is simply an omnilight with a stand animation
Code:
call SetEffect(m, "light", AddSpecialEffectTarget("Ambience\\Light-White10.mdx", u, "origin"))
It causes some problems:
-Torches no longer give off light
-Selecting different units causes the omnilight sfx to turn alternate between on and off on different units
-Selecting different units causes the omnilight sfx to turn alternate between on and off on different units
When commented away everything works fine. Are there any known problems with SetDayNightModels? Or is my lighting model corrupt somehow? I've tried another one though, and it caused the same problem. Anyway, I'm uploading it and screenshots of the second issue... Thanks in advance for any help
Edit: It appears to be because there are too many lighting models in the same area... Could this be true? I spawned roughly 20 heroes in the same area and then it got buggy. When it's down to 4 it works just fine
Attachments
Last edited: