forked from mirror/openmw-tes3mp
c27351c19e
AddItem, RemoveItem, GetItemName, GetItemCount, GetItemHealth, GetInventorySize SendInventory Example: ```lua tes3mp.AddItem(pid, "glass dagger", 1, 50) tes3mp.AddItem(pid, "glass dagger", 1, -1) tes3mp.SendInventory(pid) tes3mp.RemoveItem(pid, "glass dagger", 1) tes3mp.SendInventory(pid) local invSize = tes3mp.GetInventorySize(pid) - 1 for i = 0, invSize do print(("%s %d %d"):format(tes3mp.GetItemName(pid, i), tes3mp.GetItemCount(pid, i), tes3mp.GetItemHealth(pid, i))) end ``` |
||
---|---|---|
.. | ||
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 |