Jump to content

Actor reaction to player aiming at them in iron sights


Practicat

Recommended Posts

In my mod, I add to the special dialogue topic PLAYERINIRONSITES (which is for when the player aims at an actor in iron sights) the condition getDetected == 1, which runs on the subject with the player as the target. This solves the bug in which actors react to the player aiming at them in iron sights even though the player is hidden from them. But this only works for the base game and DLC - if anyone makes a mod with a PLAYERINIRONSITES topic, it won't be affected. I know there are NVSE functions that can be used to check whether the player is aiming in iron sights at an actor, but even if a script with those functions were used to force the PLAYERINIRONSITES topic, I'm not sure it could prevent the PLAYERINIRONSITES topic from being called if the player is hidden from them.

 

In keeping with the PLAYERINIRONSITES topic, I'd like to automatically detect all instances of it if possible and apply the getDetected condition to it so that the actor doesn't react unless they detect the player. I'm looking for help with this so I won't need DLC requirements or any requirements except maybe NVSE.

Edited by Practicat
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...