attach light fire, models to bones, vfx

dealing attack damage to nearbys via animation

animation handlers

addPlayBlendedAnimationHandler

I.AnimationController.addPlayBlendedAnimationHandler(function (groupname, options)
  print(groupname)
  print(options.stopkey)
end)
local I = require('openmw.interfaces')

local n = 0.1

I.AnimationController.addPlayBlendedAnimationHandler(function (groupname, options)
  print(groupname)
  
   if n > 3 then
      n = 0.1
   end         
   if groupname == "handtohand" or groupname == "idlehh" then -- if for specifig groups
              n = n + 0.01
            options.speed = n
     
     print(tostring(options.speed))
   end
end)

addTextKeyHandler

 I.AnimationController.addTextKeyHandler('', function(groupname, key)
	 print( groupname )
	 print( key )
 end)

playing animations

making actor knockout after jumping

I.AnimationController.addTextKeyHandler("", function(groupname, key)

        if groupname == "jump" or groupname == "jumphh" then
        print(groupname)
        print("key is", key)
           if key == "stop" then
              anim.playQueued(self,"knockout",{ loops = 1, forceLoop = true })
           end
        end
end)