Jump to content

SCRIPTING - How to 'exclude' Power Armor from script?


RedSarge

Recommended Posts

Greetings, I'm trying to make a script that will knock down a player character, except if they're in Power Armor.

 

The Big Horner Effect and subsequent script only refers to Stone Wall perk. Is there a way to check for Power Armor?

 

One thing I might try is "Getactorvalue DT" and set it so that any armor with a DT over 50 ( I play modded) will be unaffected...

 

Help!

Link to comment
Share on other sites

The best solution requires NVSE. It retreives whatever armor the player is currently wearing in slot 2 (upperbody) and checks if it has the power armor flag checked.

set rArmor to Player.GetEquippedObject 2
if (IsPowerArmor rArmor)
    ;Player is wearing power armor
endif

If you don't want to use NVSE, you're left with checking if the player is wearing anything in the AllPowerArmor form list. The power armor must be in the form list to be recognized.

if (Player.GetEquipped AllPowerArmor)
    ;Player is wearing power armor
endif
Link to comment
Share on other sites

  • Recently Browsing   0 members

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