Skip to content

[Draft] Lua actor hit bindings

MaxYari requested to merge MaxYari/openmw:luaactorhit into master

Adds a lua binding for calling actor onHit function in a configurable manner, as well an engine handler that called every time onHit is triggered.

How to test

Use GothicCombat from https://github.com/MaxYari/OpenMWExperimentalMods to see the lua bindings in action. The repo file structure might be currently broken but I think the mod should work nevertheless.

Lua function definitions

Teal function definitions can be found in the repo linked above

To Contemplate

Lua Actor.Hit function called from within an onActorHit engine handler will no cause another engine handler to be triggered. Its unclear if we actually want another engine handler to be triggered in that case or not.

Edited by MaxYari

Merge request reports