Zorkaz Posted November 12, 2020 Posted November 12, 2020 Is there a good script way to disable the use of weapons but allow Hand-To-Hand combat for a given time?
SKKmods Posted November 12, 2020 Posted November 12, 2020 Checkout GenericBrawlScript and quest You cant stop the player re-equipping a weapon, but you can probnably riff on GenericBrawlPlayerScript myQuest.CheatingStage > Stage 150 "Player Cheats"
dylbill Posted November 12, 2020 Posted November 12, 2020 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
SKKmods Posted November 12, 2020 Posted November 12, 2020 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.
Recommended Posts