Jump to content

[REQ]Equip/dress any body


kroleg91

Recommended Posts

I think...

 

Not tested... but theory seems sound

 

Put this on the player alias of a dummy quest

 

 

ScriptName YourScriptNameHere Extends ReferenceAlias

Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer)
  If (akBaseItem as Armor) || (akBaseItem as Weapon)
    If akDestContainer as Actor
      Actor Dude = akDestContainer as Actor
      If Dude.IsDead() && Dude.GetItemCount(akBaseItem) > 0
        Dude.EquipItem(akBaseItem)
      EndIf
    EndIf
  EndIf
EndEvent 

 

This SHOULD allow any dead body you interact with to equip any armor or weapon you put back into their inventory. User must take care with the order in which the items are placed. Should they choose to allow this actor to carry more than what can be worn at one time.

Link to comment
Share on other sites

I think...

 

Not tested... but theory seems sound

 

Put this on the player alias of a dummy quest

 

 

ScriptName YourScriptNameHere Extends ReferenceAlias

Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer)
  If (akBaseItem as Armor) || (akBaseItem as Weapon)
    If akDestContainer as Actor
      Actor Dude = akDestContainer as Actor
      If Dude.IsDead() && Dude.GetItemCount(akBaseItem) > 0
        Dude.EquipItem(akBaseItem)
      EndIf
    EndIf
  EndIf
EndEvent 

 

This SHOULD allow any dead body you interact with to equip any armor or weapon you put back into their inventory. User must take care with the order in which the items are placed. Should they choose to allow this actor to carry more than what can be worn at one time.

the script looks awesome thx! EDIT: someone create the mod please? I am not being able to.. :(

Edited by Gussak
Link to comment
Share on other sites

  • Recently Browsing   0 members

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