Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

StopAllScripts

Sends a request to stop all running scripts for the current character.

The stop is performed asynchronously via the character event queue. Scripts are signaled to stop and then terminated by the scripts pool.

Note that calling this method will also stop the script that made the call.

Отправляет запрос на остановку всех работающих скриптов текущего персонажа.

Остановка выполняется асинхронно через очередь событий персонажа. Скриптам отправляется сигнал остановки, после чего они завершаются пулом скриптов.

Обратите внимание, что вызов этого метода остановит и скрипт, который его вызвал.

Pascal

procedure StopAllScripts;

Python

def StopAllScripts() -> None: ...

Pascal Example

begin
  AddToSystemJournal('Stopping all scripts...');
  StopAllScripts;
end.

Python Example

AddToSystemJournal('Stopping all scripts...')
StopAllScripts()

See Also

StopScript