mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 01:49:54 +00:00
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 ``` |
||
---|---|---|
.. | ||
mwbase | ||
mwclass | ||
mwdialogue | ||
mwgui | ||
mwinput | ||
mwmechanics | ||
mwmp | ||
mwphysics | ||
mwrender | ||
mwscript | ||
mwsound | ||
mwstate | ||
mwworld | ||
android_commandLine.cpp | ||
android_commandLine.h | ||
android_main.c | ||
CMakeLists.txt | ||
crashcatcher.cpp | ||
doc.hpp | ||
engine.cpp | ||
engine.hpp | ||
main.cpp |