SlashCo Wiki

SlashCo.EnableAlarmLights

  SlashCo.EnableAlarmLights( boolean noEffect )

Description

Triggers a map-wide blackout: turns on all registered alarm cagelights (and their linked light entities), and turns off any lights configured via GameData.NonAlarmLightsName.
Unless noEffect is true, also fades every player's screen to black and plays a blackout sound. Sets GameData.IsBlackout to true.

Arguments

1boolean noEffect

If true, skips the screen fade and blackout sound.