examples
placing sword above target head: todo
modifying stats, fatigue: todo
finding same object types: todo
the grap hook: move to target hit
view directions with vector math
Usually needs these packages:
camera is for getting the spot in the screen giving direction to vector when it's compared to source position. can only be used on player script.nearby holds the castray functionsutil is for defining and handling vectorsUI package is extra if something is wanted to show to player.async package isn't needed if the castray is done in player context<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')