Template:I Source 2 Light

From Valve Developer Community
Revision as of 07:09, 8 March 2020 by Rectus (talk | contribs) (Created page with "{{ScrollBox|title=Source 2 Light| {{IO|SetLightEnabled|Sets whether the light is enabled (takes parameter of 0 or 1)|param=integer}} {{IO|TurnOn|Turn the light on.}} {{IO|Turn...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Source 2 Light:
SetLightEnabled <integer>
Sets whether the light is enabled (takes parameter of 0 or 1)
TurnOn
Turn the light on.
TurnOff
The the light off.
Toggle
Toggle the light's current state.
SetLightColor <vector>
Set light color.
SetLightBrightness <float>
Set light brightness.
SetAppearance <integer>
Set appearance 0: Normal 1: Flicker A, 2: Slow, strong pulse 3: Candle A ...
SetCustomAppearance <string>
Set a custom pattern of light brightness for this light. Pattern format is a string of characters, where 'a' is total darkness, 'z' fully bright. i.e. 'aaggnnttzz' would be a steppy fade in from dark to light.