Would this work even on friendly NPCs?
The aim of the mod is to make it so that pointing a gun at people causes a reaction depending on the NPC's stats and faction relation / disposition towards the player. I need a way for NPCs to know when they are being aimed at so that I can give them a token that causes them to either flee, start combat, or engage in "defusing" or "pleading" dialogue with the player.
I know that the guts of the game has a way, it can trigger a dialogue named "IRONSIGHTS". I've never tried to jack myself into that process or read if it's happening though.
As far as getcombattarget, I just checked via console and it works on my followers. Although it's not 100% straightforward. For example, one time I thought I was facing Arcade but, my combattarget picked up as being a mob which was behind him somewhere (EDE robot follower).