examples

AI target via sword swing

placing sword above target head: todo

modifying stats, fatigue: todo

finding same object types: todo

line of sight

the grap hook: move to target hit

view directions with vector math

packages

Usually needs these packages:

<aside> 💡

it's worthwhile to always take the unneeded packages out of the list in code

</aside>

local camera = require("openmw.camera")
local nearby = require("openmw.nearby")
local util = require("openmw.util")
local ui = require('openmw.ui')
local async = require('openmw.async')