Skip to main content

global_light_control

global_light_control icon
Point entityPorted from SevenKewpSven Co-op

A global_light_control sets a light pattern on all lights without a style, on all lights with a style, or on the style of named lights. Without a name, it sets its pattern when the map starts, and with a name, it sets it each time you trigger it.

Players who join later see the lighting as it is at that moment.

Attributes​

KeyDescriptionDefault
Nametargetname

Triggering the entity sets its pattern. See Common keys.

Patternpattern

Sets the pattern, as letters from a for dark up to z for bright, where m is normal, played at 10 letters a second. The entity ignores other characters, capital letters count as small letters, and at most 63 letters are kept.

Default m
Only these named lightstarget_entity

Names the lights to change, and the entity then ignores its flags. Lights that share a style change together.

If you leave this key empty, the flags choose the lights.

Reset light styles at round startround_reset

Sets whether every light style of the map goes back to its state of the map start at each new round, before the players spawn, as on a trigger_lightstyle.

  • No (0) - The lights keep their pattern from round to round
  • Yes (1) - The lights go back to their state of the map start
Default No (0)

Flags​

65536Also styles 1-63

The pattern is also set on every other light style, from 1 up to 63, which covers the lights with a style and the named lights

131072Not the default style

The pattern isn't set on the lights without a style

See also​

Changes since 1.38​

  • global_light_control is new in SBO 2.0.0