Jump to content

Script to remove AnimalFriend perk no work with BigHorns or Coyotes


GamerRick

Recommended Posts

I am adding the option to 'Un-Perk' some perks that I never use but would like anyway.to my mod. One of them is AnimalFriend.

 

When the option is made to Un-Perk AnimalFriend, I add the perk to the player, and if the player changes their mind, I remove the perk.

 

The problem with AnimalFriend is that having the perk means nothing. The perk just starts a quest stage (20) in the quest Generic, and it does the command:

SetAlly AnimalFriendFaction PlayerFaction 1 1

which sets the animals and player as friends.

 

Nothing works to undo that SetAlly command for the BigHorns (who are in the AnimalFriend faction). Instead of going back to being enemies with an agro-radius, they become hostile the second they detect you, like Geckos. The same goes for Coyotes, who are also enemies with agro-radius.

 

So, the various permutations of the SetEnemy commands I try don't make them return to their previous behavior of not attacking me until I get too close..

player.RemovePerk AnimalFriend
SetEnemy AnimalFriendFaction PlayerFaction 1 1

Am I missing something? The aggroRadius is part of the NPC/Creature record. Any ideas?

 

BTW, did DubiousIntent retire?

Edited by GamerRick
Link to comment
Share on other sites

  • Recently Browsing   0 members

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