1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00

Merge branch 'change-inventory-usage-docs' into 'master'

Make inventory example runnable in a script

See merge request OpenMW/openmw!1957
This commit is contained in:
psi29a 2022-05-31 14:41:54 +00:00
commit a875ac86c0

View File

@ -230,9 +230,11 @@
-- @param type (optional) items type (see @{openmw.types#types})
-- @return #ObjectList
-- @usage
-- local type = require('openmw.types')
-- local all = inventory:getAll()
-- local weapons = inventory:getAll(types.Weapon)
-- local types = require('openmw.types')
-- local self = require('openmw.self')
-- local playerInventory = types.Actor.inventory(self.object)
-- local all = playerInventory:getAll()
-- local weapons = playerInventory:getAll(types.Weapon)
return nil