Page MenuHomeFeedback Tracker

lightpoint fixes - flare by daylight and flare visibility
New, NormalPublic

Description

As found while writing https://community.bistudio.com/wiki/Lightpoint_Tutorial,
the lightpoint's flare (set by setLightUseFlare, setLightFlareSize, setLightFlareMaxDistance):

  • is not visible by daylight (using setLightDayLight)
  • max distance is hardcoded and value set by setLightFlareMaxDistance is not used.

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
if (dayTime < 8 || dayTime > 18) then { skipTime (-daytime + 12); };

private _position = player modelToWorld [0, 20, 1.5];
private _lightpoint = "#lightpoint" createVehicleLocal _position;
_lightpoint setLightColor [1,0,1]; // magic pink
_lightpoint setLightAmbient [1,0,0];
_lightpoint setLightUseFlare true;
_lightpoint setLightFlareSize 3;
_lightpoint setLightFlareMaxDistance 10; // <-- not working
_lightpoint setLightBrightness 4;
_lightpoint setLightDayLight true; // <-- not working for flare

Event Timeline

You forgot about how https://community.bistudio.com/wiki/setLightIntensity overwrites the value of setLightBrightness when clearly they are both different things.