About This File
Simple plugin that allows to overwrite actor detection from papyrus. Needed it for something, posting here in case anyone else finds it useful
Examples:
; Function AddUndetectable(Actor target, Actor detector) Global Native ActorDetectPlugin.AddUndetectable(target, None) ; <- target can't be detected by anyoneActorDetectPlugin.AddUndetectable(None, detector) ; <- detector can't detect anyoneActorDetectPlugin.AddUndetectable(target, detector) ; <- detector can't detect targetActorDetectPlugin.AddUndetectable(None, None) ; <- nobody can detect anything; Function RemoveUndetectable(Actor target, Actor detector) Global Native
Read Scripts/Source/ActorDetectPlugin.psc for all the commands and how it works.
Detect means that the NPCs will completely ignore you even if you run into them. Sneaking is not necessary. If you hit someone while they can't detect you they will start to search but won't find anything even if they walk into you.
Could be useful alternative to disabling the AI completely.
If this is already possible with papyrus then I'm dumb and ignore this.
You have permission to include it with your mod if you use it. It's not likely I will update this unless some bug is found.