void main() { object oDoor = GetObjectByTag("ty_labyrinthdoor"); object oSwitcha1 = GetObjectByTag("a1_leverswitch"); object oSwitcha2 = GetObjectByTag("a2_leverswitch"); object oSwitcha3 = GetObjectByTag("a3_leverswitch"); object oSwitcha4 = GetObjectByTag("a4_leverswitch"); SetLocalInt(oSwitcha1, "a1leverused", 0); SetLocalInt(oSwitcha2, "a1leverused", 0); SetLocalInt(oSwitcha3, "a1leverused", 0); SetLocalInt(oSwitcha4, "a1leverused", 0); DelayCommand(20.0, ActionCloseDoor(oDoor)); DelayCommand(20.0, ActionLockObject(oDoor)); }