Jump to content

How to make an NPC flee from the player?


Recommended Posts

I have an idea that I've had trouble implementing. The basic concept is that the dragonborn bursts into the room and an insignificant background character gets startled and runs away/hides. Pretty much just a sight gag.

 

I found one really easy way to do it: set the character to be hostile, "very aggressive" and "cowardly" so that they aggro on the player, start combat, but then their combat reaction is to flee. I don't like this solution because other NPC's in the area will react as if a bloody fight has broken out. Sometimes the results are bizarre and unpredictable. People start randomly killing each other. I'm looking for a more elegant method that keeps everybody OUT of combat.

 

My best guess is some kind of triggered event where by stepping in a certain area, the player triggers the NPC to stop what they're doing, run to an idle marker somewhere and cower there for X amount of time. I don't know if this should be a quest, a script, an AI package... I'm kind of a noob at this creation kit thing.

 

If this is something that's insanely complicated it's probably not worth it for a throwaway joke, but if there is a reasonably simple solution, I'd like to know it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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