protected virtual void ScriptSleep(int delay) { delay = (int)(delay * m_ScriptDelayFactor); if (delay == 0) return; Thread.Sleep(delay); }