Scriptname UnarmedDamage extends Actor{Adds Unarmed Damage when item is equiped}ObjectReference equippedItem;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference) equippedItem = akReference Debug.MessageBox(akBaseObject.GetFormID()+" "+equippedItem.GetFormID()+" "+equippedItem.GetItemHealthPercent())EndEventUnfortunately, it only behaves as expected maybe 1/100th of the time. akReference seems to not be getting passed correctly to the event, so when I call getFormID on it it returns 0 while akBaseObject returns the proper formID. Very few items will return an ID when getFormID is called on the reference
Is there a proper way to get the reference to the item when it's equipped, or reference the armor weared by the player?
