This script is used as part of a perk I made to to knock the blocking weapon from the opponents hands to the ground.
So I would need to detect the torch (LeftHand == 11 I would think) but how do I drop it? What is a torch? Is it a weapon?
Scriptname aadpDisarmScript extends ActiveMagicEffectEvent OnEffectStart(Actor akTarget, Actor akCaster)actor ME = akTargetint LeftHand = me.GetEquippedItemType(0)int RightHand = me.GetEquippedItemType(1)if LeftHand == 0 && RightHand > 0 ;-- this is done to find the Right hand weapon that is blocking.Weapon Myweapon = me.GetEquippedWeapon(false) me.UnequipItem(Myweapon) me.DropObject(Myweapon, 1) elseif LeftHand > 0 && LeftHand != 10 ;-- this is done to find the LEFT weapon that is blocking OR 2h weapon blocking. Weapon Myweapon = me.GetEquippedWeapon(true) me.UnequipItem(Myweapon) me.DropObject(Myweapon, 1) elseif lefthand == 10 armor BlockShield = me.GetEquippedShield() me.UnequipItem(BlockShield) me.DropObject(BlockShield, 1)endifendevent