Page MenuHomeFeedback Tracker

setObjectViewDistance broken
New, NormalPublic

Description

It's impossible to use setObjectViewDistance scripting command to raise object view distance above general view distance set in video settings. Raising general view distance with scripts does not help.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Scripting
Steps To Reproduce

1. Go to video settings, set view distance to 1500, object view distance to 1000 and shadow view distance to 100.
2. In debug console values of viewDistance and getObjectViewDistance (should be 1500 and [1000, 100]).
3. In debug console run:

setViewDistance 3000; setObjectViewDistance 3000;

4. Value of getObjectViewDistance should now be [3000, 100], but it's [1500, 100] instead.
5. Restart mission, to reset all code changes.
6. Go to video options and this time set view distance to 2000, keep objects view distance at 1000.
7. Repeat code from step 3
8. Again, value of getObjectViewDistance should now be [3000, 100], but it's [2000, 100] instead.

Additional Information

There also appears to be a bug with view distance sliders - setting viewDistance via code does not change slider value in options, but setObjectViewDistance and setShadowViewDistance do. It also makes impossible to simply reset object view distance with -1 attribute value.