If enabling 1 setFog [0,0,0] code in the mission AI units begin to see only very close.
Description
Description
Details
Details
- Legacy ID
- 1800921417
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- AI Issues
Steps To Reproduce
Try this simple repro-mission:
https://www.dropbox.com/s/9yybbuynzpfdlz5/FogTest.Altis.7z
If you use radio command alpha, enemy AI spots you very late. If not using, they spot you very early.
Event Timeline
Comment Actions
With 1 setFog [0,0,0.1]; you get even more dramatic result. AI sees absolutely nothign.
Comment Actions
The second value has to be greater than zero because it controls falloff. Zero falloff would theoretically mean infinite fog up to the end of the universe and beyond. ;)
Of course the AI behaviour in this situation with no visible fog is strange, but setting the second value to something above zero is a very reasonable solution.
Comment Actions
Easy to avoid it now, but took long to understand what was causing the AI issue. Hope the other mission makers dont do same mistake. :)