mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 10:36:42 +00:00
Fix #6824
This commit is contained in:
parent
1a478875f0
commit
8123e41a75
3 changed files with 3 additions and 3 deletions
|
@ -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<std::shared_ptr<AiPackage>>
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue