From e326c5bd0991e9ceaaff86a29b3da9e7b5906eff Mon Sep 17 00:00:00 2001 From: Petr Mikheev Date: Thu, 19 May 2022 10:59:31 +0200 Subject: [PATCH] Add a couple of words about Lua console to the documentation --- docs/source/reference/lua-scripting/overview.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/source/reference/lua-scripting/overview.rst b/docs/source/reference/lua-scripting/overview.rst index 47f8d09e2d..1bffb97e17 100644 --- a/docs/source/reference/lua-scripting/overview.rst +++ b/docs/source/reference/lua-scripting/overview.rst @@ -176,6 +176,17 @@ It is possible to modify a script without restarting OpenMW. To apply changes, o This will restart all Lua scripts using the `onSave and onLoad`_ handlers the same way as if the game was saved or loaded. It reloads all ``.omwscripts`` files and ``.lua`` files that are not packed to any archives. ``.omwaddon`` files and scripts packed to BSA can not be changed without restarting the game. +Lua console +=========== + +It is also possible to run Lua commands directly from the in-game console. + +To enter the Lua mode run one of the commands: + +- ``lua player`` or ``luap`` - enter player context +- ``lua global`` or ``luag`` - enter global context +- ``lua selected`` or ``luas`` - enter local context on the selected object + Script structure ================