mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-13 10:06:44 +00:00
Make inventory example runnable in a script
This commit is contained in:
parent
feb5d5bbc2
commit
e4b2f730c7
1 changed files with 5 additions and 3 deletions
|
@ -230,9 +230,11 @@
|
||||||
-- @param type (optional) items type (see @{openmw.types#types})
|
-- @param type (optional) items type (see @{openmw.types#types})
|
||||||
-- @return #ObjectList
|
-- @return #ObjectList
|
||||||
-- @usage
|
-- @usage
|
||||||
-- local type = require('openmw.types')
|
-- local types = require('openmw.types')
|
||||||
-- local all = inventory:getAll()
|
-- local self = require('openmw.self')
|
||||||
-- local weapons = inventory:getAll(types.Weapon)
|
-- local playerInventory = types.Actor.inventory(self.object)
|
||||||
|
-- local all = playerInventory:getAll()
|
||||||
|
-- local weapons = playerInventory:getAll(types.Weapon)
|
||||||
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue