hi guys, I'm working on a mod to equip different items when the player or any other actor is drawing his weapon, but I stuck on the script, it would cool a little help. i attach this on the old shield that must be replaced by the new shield when the actor draw his weapon, but nothing happens
import Utilityimport GameActor ShieldActorArmor Property NewShield Auto Event OnEquipped(Actor akActor) Utility.Wait(1) ShieldActor = akActor registerForUpdate(1)endEventEvent OnUpdate() if (ShieldActor.IsWeaponDrawn()) && (ShieldActor.GetEquippedShield() == self) ShieldActor.AddItem(NewShield, 1, true) ShieldActor.EquipItem(NewShield, true) ShieldActor.RemoveItem(self, 1, true) elseif !(ShieldActor.IsWeaponDrawn()) && (ShieldActor.GetEquippedShield() == NewShield) ShieldActor.AddItem(self, 1, true) ShieldActor.EquipItem(self, true) ShieldActor.RemoveItem(NewShield, 1, true) endifEndEventEvent OnUnequipped(Actor akActor) UnregisterForUpdate()endEvent