If you get a camera with built in detection like a Reolink I think you can trigger off the camera alarm. It is not easy though, takes some scripting. It is not great but better than nothing.
I set up a low res feed on Modect and use that to trigger recording the event on the second high res camera channel on Nodect, that keeps the CPU usage reasonable.
The learning curve for Kodi is pretty steep. Most folks aren’t going to bother.