1. Put trip-wire mine into the doorway as in my video example. I use Altis house with coordinates [22571.7,21961.2,0]
2. Set a waypoint for NPC passing through the this doorway
3. Run game and watch
I do not exclude that trip-wire mine will work for you, but the problem is that the mine does not work stably, even in open and flat spaces!
There is always a 50/50 chance that a person will pass through the trip-wire without hooking it, which is impossible in real life. The stability of such a mine must be 100%