mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-11-29 12:04:33 +00:00
Up to this commit, the following commands in a Lua script led to the target player receiving all three items, as expected:
tes3mp.AddItem(self.pid, "common_shirt_01", 1, -1)
tes3mp.AddItem(self.pid, "common_pants_01", 1, -1)
tes3mp.AddItem(self.pid, "common_shoes_01", 1, -1)
tes3mp.SendInventory(self.pid)
This, on the other hand, only led to the removal of the last item specified (in this case, the shoes):
tes3mp.RemoveItem(self.pid, "common_shirt_01", 1)
tes3mp.RemoveItem(self.pid, "common_pants_01", 1)
tes3mp.RemoveItem(self.pid, "common_shoes_01", 1)
tes3mp.SendInventory(self.pid)
Inventory functions are bound to remain confusing, but they should at least be consistent in their behavior.
|
||
|---|---|---|
| .. | ||
| API | ||
| Functions | ||
| LangLua | ||
| LangNative | ||
| LangPawn | ||
| Language.hpp | ||
| Platform.hpp | ||
| Script.cpp | ||
| Script.hpp | ||
| ScriptFunction.cpp | ||
| ScriptFunction.hpp | ||
| ScriptFunctions.cpp | ||
| ScriptFunctions.hpp | ||
| SystemInterface.hpp | ||
| Types.hpp | ||