Page MenuHomeFeedback Tracker

checkVisibility command does not take into account fog.
New, WishlistPublic

Description

If you set dense fog the checkVisibility command will always return 1, even if the two points are not visible. Assuming that this command replicates what an "eye" should see, fog should also be taken into account in the visibility measurement.

Details

Legacy ID
2239399804
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Scripting
Steps To Reproduce

Set dense fog in mission and then run command over a couple dozen meters where you wouldn't be able to see those two points in game. Command returns 1 instead of 0 or <1.

Additional Information

This command is _almost_ perfect. This (and potentially making clouds also affect it, but I do not imagine that is easily done) would make it the perfect command for checking a number of things related to AI programming and optical systems simulations (ACE lasers being a main benefit).

Event Timeline

Nou edited Steps To Reproduce. (Show Details)Oct 4 2015, 7:29 AM
Nou edited Additional Information. (Show Details)
Nou set Category to Scripting.
Nou set Reproducibility to N/A.
Nou set Severity to None.
Nou set Resolution to Open.
Nou set Legacy ID to 2239399804.May 8 2016, 12:53 PM