Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

lightstyle

From Quake Wiki

Revision as of 04:06, 27 March 2013 by Necros (talk | contribs) (Created page with "====Syntax:==== <code>void lightstyle(float style, string value)</code> Changes a light style in-game. In stock Quake, this is used to make switchable lights. ====Parameters...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

void lightstyle(float style, string value)

Changes a light style in-game. In stock Quake, this is used to make switchable lights.

Parameters:

style - The light style to affect.
value - The string of letters that make up the lightstyle's brightness values.

Returns:

void

Example:

lightstyle(15, "azazaaazzz");

Other Details:

The string value is a sequence of letters representing different brightness levels. a is pitch black (off) and z is full brightness (in engines with overbright lighting, this is actually double brightness, m is normal brightness). Each letter is played for 0.1 seconds and when the engine gets to the end of the sequence, it loops back to the beginning. It is important to note that a light style is global and will affect all lights in the level that are tagged with a particular light style. Setting style 0 will affect all normal lights in the level (including sunlight and minlight!).