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.
Description
Description
Details
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).