Package openmw.content
Allows for manipulation of the data loaded from content files while the game is first started.
Records can be created and deleted using this package as if a content file had done so.
load
Usage
local content = require('openmw.content')
Type content
| content.globals |
#GlobalContent: Global variable manipulation. |
| content.statics |
#StaticContent: Static manipulation. |
Type GlobalContent
| GlobalContent.records |
A mutable list of all global mwscript variables. |
Type StaticContent
| StaticContent.records |
A mutable list of all openmw.types#StaticRecords. |
Type content
Field(s)
- #GlobalContent content.globals
-
#GlobalContent: Global variable manipulation.
- #StaticContent content.statics
-
#StaticContent: Static manipulation.
Type GlobalContent
Field(s)
- #map<#string,#number> GlobalContent.records
-
A mutable list of all global mwscript variables.
Usage
content.globals.records.MyVariable = 42
Type StaticContent
Field(s)
- #list<openmw.types#StaticRecord> StaticContent.records
-
A mutable list of all openmw.types#StaticRecords.
Usage
content.statics.records.MyStatic = { model = 'meshes/b/B_N_Wood Elf_M_Head_02.nif' }