Armor Property DA Auto Actor Property PlayerRef Auto GlobalVariable Property HelmetVar AutoEvent OnUnequipped(Actor akActor) if akActor == PlayerRef && PlayerRef.IsInCombat() && PlayerRef.GetItemCount(DA) == 1 && HelmetVar.GetValue() == 0HelmetVar.SetValue(1)Debug.Notification("Dragonborn Armor can not be unequiped while in combat")PlayerRef.EquipItem(DA, abSilent = true)Elseif akActor == PlayerRef && PlayerRef.IsInCombat() && PlayerRef.GetItemCount(DA) == 1 && HelmetVar.GetValue() == 1Debug.Notification("Dragonborn Armor can not be unequiped while in combat")PlayerRef.EquipItem(DA, abSilent = true)Elseif akActor == PlayerRef && PlayerRef.IsInCombat()==False && HelmetVar.GetValue() == 1 || HelmetVar.GetValue() == 2HelmetVar.SetValue(0)Debug.Notification("Dragonborn Armor can be unequiped while not in combat")endIfendEvent
This script works very well except for one problem.
Under the event on unequipped you see this script.
Elseif akActor == PlayerRef && PlayerRef.IsInCombat()==False && HelmetVar.GetValue() == 1 || HelmetVar.GetValue() == 2
HelmetVar.SetValue(0)
Debug.Notification("Dragonborn Armor can be unequiped while not in combat")
If fires while the player is in combat. While the same exact script under the event on equipped does not.
Any ideas as to why???
Thanks