diff --git a/apps/openmw-mp/Script/Functions/Objects.cpp b/apps/openmw-mp/Script/Functions/Objects.cpp index 2e31a912d..9f3335b35 100644 --- a/apps/openmw-mp/Script/Functions/Objects.cpp +++ b/apps/openmw-mp/Script/Functions/Objects.cpp @@ -430,6 +430,11 @@ void ObjectFunctions::SetObjectListAction(unsigned char action) noexcept writeObjectList.action = action; } +void ObjectFunctions::SetObjectListContainerSubAction(unsigned char containerSubAction) noexcept +{ + writeObjectList.containerSubAction = containerSubAction; +} + void ObjectFunctions::SetObjectListConsoleCommand(const char* consoleCommand) noexcept { writeObjectList.consoleCommand = consoleCommand; diff --git a/apps/openmw-mp/Script/Functions/Objects.hpp b/apps/openmw-mp/Script/Functions/Objects.hpp index a85bd5af9..ee7c10251 100644 --- a/apps/openmw-mp/Script/Functions/Objects.hpp +++ b/apps/openmw-mp/Script/Functions/Objects.hpp @@ -91,6 +91,7 @@ \ {"SetObjectListCell", ObjectFunctions::SetObjectListCell},\ {"SetObjectListAction", ObjectFunctions::SetObjectListAction},\ + {"SetObjectListContainerSubAction", ObjectFunctions::SetObjectListContainerSubAction},\ {"SetObjectListConsoleCommand", ObjectFunctions::SetObjectListConsoleCommand},\ \ {"SetObjectRefId", ObjectFunctions::SetObjectRefId},\ @@ -854,6 +855,15 @@ public: */ static void SetObjectListAction(unsigned char action) noexcept; + /** + * \brief Set the container subaction type of the temporary object list stored on the server. + * + * \param action The action type (0 for NONE, 1 for DRAG, 2 for DROP, 3 for TAKE_ALL, + * 4 for REPLY_TO_REQUEST, 5 for RESTOCK_RESULT). + * \return void + */ + static void SetObjectListContainerSubAction(unsigned char subAction) noexcept; + /** * \brief Set the console command of the temporary object list stored on the server. *