Jump to content

Need Script to Check Weapon Not Equipped


sp0ckrates

Recommended Posts

I know there is a way to check that the NPC doesn't have any weapon equipped. Just cannot remember.

 

I'm developing a mod that gives Uthgerd the ability to turn into a werewolf. Works great, but she turns during the brawl to get her as a follower! Adding code to the script that checks if she is unarmed should fix it.

 

Thanks in advance.

 

:)

Edited by sp0ckrates
Link to comment
Share on other sites

Why check for whether or not she has a weapon equipped? Simply check if the brawl quest is running.

 

necessary code in psuedo format

Quest Property DGIntimidateQuest Auto
{auto-fill this property}

If DGIntimidateQuest.IsRunning()
;prevent werewolf change
EndIf

This should prevent her from turning during any of the standard non-companion brawl situations including her own.

Link to comment
Share on other sites

  • 3 years later...

Why check for whether or not she has a weapon equipped? Simply check if the brawl quest is running.

 

necessary code in psuedo format

Quest Property DGIntimidateQuest Auto
{auto-fill this property}

If DGIntimidateQuest.IsRunning()
;prevent werewolf change
EndIf

This should prevent her from turning during any of the standard non-companion brawl situations including her own.

 

Never thanked you for this. It's good to see someone who is so devoted to helping others out. Much appreciated!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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