Ok, so I've learned a few things. GetDetected calling an NPC's ID if there's more than one reference in the game will return nothing. For example:
CODE
GetDetected "fargoth"
Assuming the calling actor can detect Fargoth, this returns 1. But:
CODE
GetDetected "Imperial Guard"
doesn't return anything! Not 0, not 1...absolutely no return at all. There's only 1 Fargoth, but many guards. Now if I do:
CODE
GetDetected "Imperial Guard00000002"
I get a value returned.
GetLineofSight and GetLOS work in the same way.
Quite interesting to know really, and it certainly makes sense. But all of this info doesn't really help me. I'm trying to determine if the player can be detected by any guard NPC at a given time. I try to do this by using "Imperial Guard"->GetDetected Player, which doesn't seem to work either. That returns 1 if
any NPC can detect the player. I'm quickly running out of options here, I'm trying not to resort to MWSE for this if I can help it. I'm saving that for the "deluxe" version of this mod.