void OnStart()
{
SetEntityConnectionStateChangeCallback("lever", "func_shelf");
}
void func_shelf(string &in asEntity, int alState)
{
if (alState == 1)
{
SetSwingDoorLocked("lockthisshit", true, true);
SetLampLit("light1room2", false, true);
SetLampLit("light2room2", false, true);
SetLampLit("light3room2", false, true);
SetLampLit("light4room2", false, true);
SetLampLit("light5room2", false, true);
SetLampLit("light6room2", false, true);
SetLampLit("light7room2", false, true);
SetLampLit("light8room2", false, true);
SetLampLit("light9room2", false, true);
SetMoveObjectState("shelf", 1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "rotatearea", 0, false);
return;
}
}