forked from teamnwah/openmw-tes3coop
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
```
|
||
|---|---|---|
| .. | ||
| bsa | ||
| compiler | ||
| config | ||
| contentselector | ||
| esm | ||
| esmterrain | ||
| fallback | ||
| files | ||
| fontloader | ||
| interpreter | ||
| loadinglistener | ||
| misc | ||
| myguiplatform | ||
| nif | ||
| nifbullet | ||
| nifosg | ||
| openmw-mp | ||
| process | ||
| resource | ||
| sceneutil | ||
| sdlutil | ||
| settings | ||
| shader | ||
| terrain | ||
| to_utf8 | ||
| translation | ||
| version | ||
| vfs | ||
| widgets | ||
| CMakeLists.txt | ||
| doc.hpp | ||