Page MenuHomeFeedback Tracker

1 setFog [0,0,0] Breaks AI [with RePro mission]
Assigned, WishlistPublic

Description

If enabling 1 setFog [0,0,0] code in the mission AI units begin to see only very close.

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

SaOk edited Steps To Reproduce. (Show Details)Sep 9 2013, 7:44 PM
SaOk edited Additional Information. (Show Details)
SaOk set Category to AI Issues.
SaOk set Reproducibility to Always.
SaOk set Severity to None.
SaOk set Resolution to Open.
SaOk set Legacy ID to 1800921417.May 7 2016, 4:37 PM
SaOk added a subscriber: SaOk.May 7 2016, 4:37 PM
SaOk added a comment.Sep 9 2013, 7:49 PM

With 1 setFog [0,0,0.1]; you get even more dramatic result. AI sees absolutely nothign.

SaOk added a comment.Sep 9 2013, 7:58 PM

With 1 setFog [0,0.1,0.1]; AI sees. The second parameters breaks the AI if 0?

SaOk added a comment.Sep 9 2013, 8:01 PM

Issue seem to be gone already with 1 setFog [0,0.001,0];

MadDogX added a subscriber: MadDogX.May 7 2016, 4:37 PM

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.

SaOk added a comment.Sep 9 2013, 11:14 PM

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. :)