Jump to content

Script: Disable Weapons but allow Hand-To-Hand


Zorkaz

Recommended Posts

You can prevent equip with a reference alias using the onItemEquipped event:

 

Event OnItemEquipped(Form akBaseObject, ObjectReference akReference)
  if akBaseObject as Weapon
      Self.GetActorReference().UnequipItem(akBaseObject)
      Debug.Notification("No weapons allowed.")
  endIf
endEvent
Link to comment
Share on other sites

Some other ideas that I have used:

 

Silently remove all weapons from the player and then give them back. Make sure the akOtherContainer is persistent so it doesnt suddenly reset.
pPlayerREF.RemoveItem(pObjectTypeWeapon, aiCount = -1, abSilent = True, akOtherContainer = Alias_HiddenContainer.GetReference())
pPlayerREF.RemoveItem(pObjectTypeAmmo,   aiCount = -1, abSilent = True, akOtherContainer = Alias_HiddenContainer.GetReference())
Or add a perk that suppresses all weapon outgoing damage [ ModWeaponAttackDamage ] Mult Value 0.0 on Weapon [ HasKeyword ObjectTypeWeapon ]
Which works because UnarmedHuman is not included in keyword ObjectTypeWeapon.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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