injaku Posted January 21, 2023 Share Posted January 21, 2023 (edited) I am looking for a method to get a list of the NPCs who can see/detect the player and follower(s). I would prefer Papyrus, but can use CPP if required. So far I having been looking into https://www.nexusmods.com/skyrimspecialedition/mods/63057, but I can't see how meterarr is initialized with actors. https://github.com/max-su-2019/MaxsuDetectionMeter/blob/main/src/Renderer.cpp#L326 Edited January 21, 2023 by injaku Link to comment Share on other sites More sharing options...
Sphered Posted January 21, 2023 Share Posted January 21, 2023 Unless there is a magic effect parameter I am not thinking of, there is no direct way to natively do this. There are ways you could sweep a radius around you, and call the actor function HasLOS() which will give a good idea of at least can detect you. Beyond that it would take some out of the box conceptualizing and testing to narrow it further Link to comment Share on other sites More sharing options...
injaku Posted January 22, 2023 Author Share Posted January 22, 2023 (edited) This code extends Spell and then uses the cast effect to collect the set of witnesses. https://github.com/Sairion350/OCrime/blob/main/scripts/source/OCrimeEffectScript.psc What I don't see is how is how to flag the spell as an area effect spell nor set how large a poll of possible actors to effect. Edited January 22, 2023 by injaku Link to comment Share on other sites More sharing options...
Recommended Posts