Jump to content

Recommended Posts

Posted

The title basically says it all! I'm using an OnHit block attached to a weapon, trying to return the armor the hit NPC is wearing. Unfortunately, GetEquippedObject only returns base objects. What command should I be using?

 

Thanks for reading!!

  • 4 weeks later...
Posted (edited)

I dug around and finally found the answer. If you're reading this and also trying to figure out how to damage the condition of something an NPC is wearing, here's all you need:

 

ExampleREF.GetEquippedCurrentHealth (equip slot)
ExampleREF.SetEquippedCurrentHealth (value) (equip slot)

EQUIP SLOTS
0: Head
1: Hair
2: Upper body
3: Left hand
4: Right hand
5: Weapon
6: Pip boy
7: Backpack
8: Necklace
9: Headband
10: Hat
11: Eyeglasses
12: Nosering
13: Earrings
14: Mask
15: Choker
16: Mouth object
17: Body addon 1
18: Body addon 2
19: Body addon 3

Edited by punchbattle
  • Recently Browsing   0 members

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