Jump to content

Guards Not Reacting To Hostile NPC


daofu

Recommended Posts

I created a hostile NPC who spawns in Whiterun, and attacks anyone who gets near him using Aggro radius. However, when he attacks, the guards only watch the fight instead of protecting the victim.

 

How can I make the guards attack the hostile once he starts combat?

Link to comment
Share on other sites

Add him to a faction that generally wars with guards, such as the bandit faction? Try it, should work. If a bandit aligned NPC attacks me or a citizen, guards go nuts and slaughter the poor fool. Edited by Saratje
Link to comment
Share on other sites

I think that approach might only work if the NPC being attacked is in a faction that is allied with the guards?

 

Anyhow, try adding the enemy to the Creature faction. Guards always seem to attack hostile creatures spontaneously.

Edited by steve40
Link to comment
Share on other sites

I think that approach might only work if the NPC being attacked is in a faction that is allied with the guards?

 

Anyhow, try adding the enemy to the Creature faction. Guards always seem to attack hostile creatures spontaneously.

I haven't tried that one yet.

 

And yeah, that's one thing that bothers me. I looked at how the bear is set up, and it's pretty much like my NPC in that their AI data is set up to be unaggressive but has an aggro radius. However, they'll take up arms against the bear, but they'll rather flee and watch a level 4 thief beat up townsfolk.

Link to comment
Share on other sites

What about just creating a new faction?

 

- Create myFaction

- Add the NPC to the faction

- choose one of the whiterun guards factions (i guess the name is GuardWhiterunFaction?)

- in the faction interactions, add myFaction and set it to "enemy"

 

Or there may be another way (but i don't know how many guard IDs there are)

 

You can build "archenemy" relationships between your NPC and the guards, with the guards as parents.

Link to comment
Share on other sites

What about just creating a new faction?

 

- Create myFaction

- Add the NPC to the faction

- choose one of the whiterun guards factions (i guess the name is GuardWhiterunFaction?)

- in the faction interactions, add myFaction and set it to "enemy"

 

Or there may be another way (but i don't know how many guard IDs there are)

 

You can build "archenemy" relationships between your NPC and the guards, with the guards as parents.

That doesn't work either. It was one of the first methods I tried to get the guards to respond, but they'd still rather watch the fight. :(

 

I did discover the that guards will attack the hostile if he's right beside the guard while attacking someone else. Perhaps the guards will only react if he's within the aggro radius? Compared to the bear, which has a radius of 3000 at most, my thief only has a radius of 128.

Link to comment
Share on other sites

The aggro radius should be relative to the NPC holding the data, not to the others entering the radius.

 

I don't know why it doesn't work. It should work like with the player.

 

Since guards are in CrimeWhiterunFaction, everytime they see a crime they'll just attack the person who made it.

 

Does your NPC have any particular faction like TownWhiterunFaction or CrimeWhiterunFaction?

Link to comment
Share on other sites

  • 6 years later...
  • Recently Browsing   0 members

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