Package openmw.worldΒΆ

openmw.world is an interface to the game world for global scripts.

Can not be used from local scripts.

Usage:

local world = require('openmw.world')

Type world

world.activeActors

List of currently active actors.

world.getCellByName(cellName)

Loads a named cell

world.getExteriorCell(gridX, gridY)

Loads an exterior cell by grid indices

world.selectObjects(query)

Evaluates a Query.

Type world

Field(s)

openmw.core#ObjectList world.activeActors

List of currently active actors.

world.getCellByName(cellName)

Loads a named cell

Parameter

  • #string cellName :

Return value

openmw.core#Cell:

world.getExteriorCell(gridX, gridY)

Loads an exterior cell by grid indices

Parameters

  • #number gridX :

  • #number gridY :

Return value

openmw.core#Cell:

world.selectObjects(query)

Evaluates a Query.

Parameter

Return value

openmw.core#ObjectList: