From 8123e41a759a45e017b853b6e685d4326a8ced0e Mon Sep 17 00:00:00 2001 From: Petr Mikheev Date: Tue, 21 Jun 2022 21:06:37 +0200 Subject: [PATCH] Fix #6824 --- apps/openmw/mwlua/localscripts.cpp | 2 +- apps/openmw/mwlua/luabindings.cpp | 2 +- files/data/scripts/omw/ai.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwlua/localscripts.cpp b/apps/openmw/mwlua/localscripts.cpp index cca31361ff..270379fe6d 100644 --- a/apps/openmw/mwlua/localscripts.cpp +++ b/apps/openmw/mwlua/localscripts.cpp @@ -79,7 +79,7 @@ namespace MWLua return LObject(getId(target), worldView->getObjectRegistry()); }); aiPackage["sideWithTarget"] = sol::readonly_property([](const AiPackage& p) { return p.sideWithTarget(); }); - aiPackage["destination"] = sol::readonly_property([](const AiPackage& p) { return p.getDestination(); }); + aiPackage["destPosition"] = sol::readonly_property([](const AiPackage& p) { return p.getDestination(); }); selfAPI["_getActiveAiPackage"] = [](SelfObject& self) -> sol::optional> { diff --git a/apps/openmw/mwlua/luabindings.cpp b/apps/openmw/mwlua/luabindings.cpp index e95d415bf5..2383be8137 100644 --- a/apps/openmw/mwlua/luabindings.cpp +++ b/apps/openmw/mwlua/luabindings.cpp @@ -47,7 +47,7 @@ namespace MWLua { auto* lua = context.mLua; sol::table api(lua->sol(), sol::create); - api["API_REVISION"] = 24; + api["API_REVISION"] = 25; api["quit"] = [lua]() { Log(Debug::Warning) << "Quit requested by a Lua script.\n" << lua->debugTraceback(); diff --git a/files/data/scripts/omw/ai.lua b/files/data/scripts/omw/ai.lua index 5d76a7d9be..0040406226 100644 --- a/files/data/scripts/omw/ai.lua +++ b/files/data/scripts/omw/ai.lua @@ -44,7 +44,7 @@ return { -- @field #string type Type of the AI package. -- @field openmw.core#GameObject target Target (usually an actor) of the AI package (can be nil). -- @field #boolean sideWithTarget Whether to help the target in combat (true or false). - -- @field openmw.util#Vector3 position Destination point of the AI package (can be nil). + -- @field openmw.util#Vector3 destPosition Destination point of the AI package. --- Return the currently active AI package (or `nil` if there are no AI packages). -- @function [parent=#AI] getActivePackage