diff --git a/files/lua_api/openmw/core.lua b/files/lua_api/openmw/core.lua index 659a17beb1..24bddabd6d 100644 --- a/files/lua_api/openmw/core.lua +++ b/files/lua_api/openmw/core.lua @@ -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