void LightsOut(string &in entity)
{
SetLampLit("candlestick_floor_red_1", false, "");
StartPlayerLookAt("candlestick_floor_red_1", 10, 20, "");
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
AddTimer("1", 0.5f, "NoLights");
AddTimer("2", 1.0f, "NoLights");
AddTimer("3", 1.5f, "NoLights");
AddTimer("4", 2.0f, "NoLights");
AddTimer("5", 2.5f, "NoLights");
AddTimer("6", 3.0f, "NoLights");
AddTimer("7", 3.5f, "NoLights");
}
void NoLights(string &in asTimer)
{
if(asTimer == "1"){
PlayGuiSound("player_cough.snt", 0.7f);
StopPlayerLookAt();
}
else if(asTimer == "2"){
StartPlayerLookAt("candle_floor_1", 10, 20, "");
SetLampLit("candle_floor_1", false, "");
}
else if(asTimer == "3"){
StopPlayerLookAt();
StartPlayerLookAt("candle_floor_2", 10, 20, "");
SetMessage("Messages", "???", 3.0f);
SetLampLit("candle_floor_2", false, "");
}
else if(asTimer == "4"){
StopPlayerLookAt();
StartPlayerLookAt("candle_floor_3", 10, 20, "");
PlayGuiSound("react_breath_slow", 0.7f);
SetLampLit("candle_floor_3", false, "");
}
else if(asTimer == "5"){
StopPlayerLookAt();
StartPlayerLookAt("candle_floor_4", 10, 20, "");
SetLampLit("candle_floor_4", false, "");
}
else if(asTimer == "6"){
StopPlayerLookAt();
StartPlayerLookAt("candlestick_floor_red_2", 10, 20, "");
SetLampLit("candlestick_floor_red_2", false, "");
}
else if(asTimer == "7"){
StopPlayerLookAt();
}
}