Getting Guards to Attack the Player

Post » Wed Jun 20, 2012 2:37 pm

As part of a quest, the player has the option of committing a crime. I'm having a great deal of difficulty trying to get this to have consequences. Using SetCrimeGold or ModCrimeGold gives the player the stated bounty, but guards will not attack the player. After setting a large bounty and trying to talk to guards they just respond with "Wait, I know you..." and walk off. They won't even initiate a conversation.

I've tried using SendAssaultAlarm() on the crime faction, but this only works if there happens to be a nearby guard, and also prevents the player from successfully sneaking.

I've also tried Game.GetPlayer().SetAttackActorOnSight() which should get everyone in the entire game to attack the player but this seems to do nothing at all.

How can I get faction guards to arrest or attack the player if I've added a bounty?
User avatar
GRAEME
 
Posts: 3363
Joined: Sat May 19, 2007 2:48 am

Return to V - Skyrim