Jump to content

Making an NPC Attack Another NPC Once In The Creation Kit


Scarecrow

Recommended Posts

Posted

So I've tried to set up a package using the UseWeapon template to make an NPC attack another a single time, however even though the NPC will move to the target NPC, he won't attack him. Anyone know what the problem is? Also, I'm trying to make the NPC use a specific weapon to attack the other NPC by force-equipping it, if that changes anything.

Posted

You need to create a faction (or two), assign this faction to your attacker NPC, and put inside the faction, a faction of the other NPC as Enemy.

If the other NPC has no good factions, then you need to create a second one for it.

 

Keep in mind that the first NPC will attach the second always. Until you will not remove it from the faction. That can be done with a single Papyrus line of code.

Posted

Thanks for the help again! And if I'm using the faction system to make my NPC attack the other one, does that mean I should get rid of the package?

Posted

Thanks for the help again! And if I'm using the faction system to make my NPC attack the other one, does that mean I should get rid of the package?

 

To attack another NPC you just need to correctly define a few things.

 

The faction of the attacker has to have as enemy the faction of the attacked.

The aggressiveness of your attacker has to be high enough to start attacking right away. (The last two values do this.)

 

You don't need a package to start a combat. (Also because the package will be removed as soon the combat will start.)

 

 

P.S. when you answer or add other question, please quote me, and remove what I said. So I will receive a notification.

I usually do not follow the posts I wrote a quick answer because they are too many.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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