void InitInterface(string iniName) { ref mchref = GetMainCharacter(); SendMessage(&GameInterface,"ls",MSG_INTERFACE_INIT,iniName); SetEventHandler("InterfaceBreak","ProcessCancelExit",0); SetEventHandler("exitCancel","ProcessCancelExit",0); } void ProcessCancelExit() { DelEventHandler("InterfaceBreak","ProcessCancelExit"); DelEventHandler("exitCancel","ProcessCancelExit"); interfaceResultCommand = RC_INTERFACE_ENDGAME_EXIT; EndCancelInterface(true); }