diag setLightNew: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added new diag_setLightNew sqf command)
 
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
 
(29 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:diag_setLightNew}}
{{RV|type=command
{{Command|= Comments
____________________________________________________________________________________________


| arma3dev |= Game name
|game1= arma3
|version1= 1.82


|1.81|= Game version
|gr1= Lights
____________________________________________________________________________________________


| 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.
|gr2= Diagnostic
{{warning|Command is only available when using [[Arma 3 Diagnostics Exe|Arma 3 Diagnostics Exe]] on Dev-Branch.}}|= Description
____________________________________________________________________________________________


| '''diag_setLightNew''' "config_in_string_form" |= Syntax
|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]].


|p1= name: [[String]] - "code" |= Parameter 1
|s1= [[diag_setLightNew]] config


| [[Nothing]] |= Return value
|p1= config: [[String]] - config in string form
____________________________________________________________________________________________
 
|x1= <code>[[diag_setLightNew]] "sunOrMoon = 1; diffuse[] = { 0, 0, 0, 0 }; diffuseCloud[] = { 0, 0, 0, 0 }; ambient[] = { 0, 0, 0, 0 }; ... "</code> |= Example 1
____________________________________________________________________________________________


| [[diag_lightNewLoad]] |= See also
|r1= [[Nothing]]


|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]]
}}
}}


<h3 style="display:none">Notes</h3>
{{Note
<dl class="command_description">
|user= POLPOX
<!-- Note Section BEGIN -->
|timestamp= 20230514105007
<!-- Note Section END -->
|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.
</dl>
}}
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 13:59, 8 November 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 or on the Forums.
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.