diag setLightNew: Difference between revisions

From Bohemia Interactive Community
(fixed category. Is not only in diag but also in the base game)
No edit summary
(5 intermediate revisions by one other user not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 1.82
|version1= 1.82


|gr1 = Lights
|gr1= Lights


|gr2= Diagnostic
|gr2= Diagnostic


|descr= Overrides currently used scene lightning. The operand is config that is placed as a string (not file). The changes may not be applied immediately, but can be forced by the call of [[simulWeatherSync]].
|descr= Overrides currently used scene lighting. The operand is config that is placed as a string (not file).
The changes may not be applied immediately, but can be forced by the call of [[simulWeatherSync]].


|s1= [[diag_setLightNew]] config
|s1= [[diag_setLightNew]] config
Line 16: Line 16:


|r1= [[Nothing]]
|r1= [[Nothing]]
 
 
|x1= <code>[[diag_setLightNew]] "sunOrMoon = 1; diffuse[] = { 0, 0, 0, 0 }; diffuseCloud[] = { 0, 0, 0, 0 }; ambient[] = { 0, 0, 0, 0 }; ... "</code>
|x1= <sqf>diag_setLightNew "sunOrMoon = 1; diffuse[] = { 0, 0, 0, 0 }; diffuseCloud[] = { 0, 0, 0, 0 }; ambient[] = { 0, 0, 0, 0 }; ... ";</sqf>


|seealso= [[diag_lightNewLoad]]
|seealso= [[diag_lightNewLoad]]
}}
{{Note
|user= POLPOX
|timestamp= 20230514105007
|text= The change is permanent (you can see the change even after you change the mission/terrain.) However, you can send an empty string to reset the lighting.
}}
}}

Revision as of 11:50, 14 May 2023

Hover & click on the images for description

Description

Description:
Overrides currently used scene lighting. The operand is config that is placed as a string (not file). The changes may not be applied immediately, but can be forced by the call of simulWeatherSync.
Groups:
LightsDiagnostic

Syntax

Syntax:
diag_setLightNew config
Parameters:
config: String - Config in string form
Return Value:
Nothing

Examples

Example 1:
diag_setLightNew "sunOrMoon = 1; diffuse[] = { 0, 0, 0, 0 }; diffuseCloud[] = { 0, 0, 0, 0 }; ambient[] = { 0, 0, 0, 0 }; ... ";

Additional Information

See also:
diag_lightNewLoad

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
POLPOX - c
Posted on May 14, 2023 - 10:50 (UTC)
The change is permanent (you can see the change even after you change the mission/terrain.) However, you can send an empty string to reset the lighting.