Template:I Source 2 Light2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Create IO input template for the Next-Gen lights from lights2.fgd)
 
m (→‎top: Substituted IO templates)
 
Line 1: Line 1:
{{ScrollBox|title=Source 2 Light2|
{{ScrollBox|title=Source 2 Light2|


{{IO|Enable|Turn on the light.|param=void}}
{{I|Enable|Turn on the light.|param=void}}
{{IO|Disable|Turn off the light.|param=void}}
{{I|Disable|Turn off the light.|param=void}}
{{IO|Toggle|Toggle the light.|param=void}}
{{I|Toggle|Toggle the light.|param=void}}
{{IO|SetColor|Set the light's color.|param=color255}}
{{I|SetColor|Set the light's color.|param=color255}}
{{IO|SetColorTemperature|Set the light's color temperature in Kelvin.|param=float}}
{{I|SetColorTemperature|Set the light's color temperature in Kelvin.|param=float}}
{{IO|SetBrightness|Set the light's brightness in EV.|param=float}}
{{I|SetBrightness|Set the light's brightness in EV.|param=float}}
{{IO|SetBrightnessScale|Set the light's brightness multiplier, which defaults to 1.|param=float}}
{{I|SetBrightnessScale|Set the light's brightness multiplier, which defaults to 1.|param=float}}
{{IO|SetStyle|separated list of styles from light_styles.vdata to play in sequence. The last entry will loop. The last style can be 'on'/'off' to enable/disable the light with no light style.|param=string}}
{{I|SetStyle|separated list of styles from light_styles.vdata to play in sequence. The last entry will loop. The last style can be 'on'/'off' to enable/disable the light with no light style.|param=string}}
{{IO|SetFogStrength|Set the fog strength.|param=float}}
{{I|SetFogStrength|Set the fog strength.|param=float}}
{{IO|SetFogScale|Set the fog multiplier, which defaults to 1.|param=float}}}}
{{I|SetFogScale|Set the fog multiplier, which defaults to 1.|param=float}}}}


<noinclude>
<noinclude>
[[Category:Input Templates|Source 2 Light2]]
[[Category:Input Templates|Source 2 Light2]]
</noinclude>
</noinclude>

Latest revision as of 12:56, 21 April 2025

Source 2 Light2:


Enable <void>
Turn on the light.
Disable <void>
Turn off the light.
Toggle <void>
Toggle the light.
SetColor <color255>
Set the light's color.
SetColorTemperature <float>
Set the light's color temperature in Kelvin.
SetBrightness <float>
Set the light's brightness in EV.
SetBrightnessScale <float>
Set the light's brightness multiplier, which defaults to 1.
SetStyle <string>
separated list of styles from light_styles.vdata to play in sequence. The last entry will loop. The last style can be 'on'/'off' to enable/disable the light with no light style.
SetFogStrength <float>
Set the fog strength.
SetFogScale <float>
Set the fog multiplier, which defaults to 1.