Scriptname DetectRemoveScrapScript extends ObjectReference FormList Property Dwemer1ScrapItems autoFormList Property Dwemer2ScrapItems autoFormList Property Dwemer3ScrapItems autoGlobalVariable Property DwemerScrapGlobal autoevent OnTriggerEnter(ObjectReference akActionRef)ObjectReference Near1Scrap = Game.FindClosestReferenceOfAnyTypeInListFromRef(Dwemer1ScrapItems, self, 50)ObjectReference Near2Scrap = Game.FindClosestReferenceOfAnyTypeInListFromRef(Dwemer2ScrapItems, self, 50)ObjectReference Near3Scrap = Game.FindClosestReferenceOfAnyTypeInListFromRef(Dwemer3ScrapItems, self, 50)if Near1Scrap==akActionRefakActionRef.disable(1)DwemerScrapGlobal.SetValue((DwemerScrapGlobal.GetValue() as int) + 1)Utility.Wait(2.5)akActionRef.delete()elseif Near2Scrap==akActionRefakActionRef.disable(1)DwemerScrapGlobal.SetValue((DwemerScrapGlobal.GetValue() as int) + 2)Utility.Wait(2.5)akActionRef.delete()elseif Near3Scrap==akActionRefakActionRef.disable(1)DwemerScrapGlobal.SetValue((DwemerScrapGlobal.GetValue() as int) + 3)Utility.Wait(2.5)akActionRef.delete()endIfendEvent
It's on an activator surrounding a table. When I put things on the table I want it to basically decide if the thing that entered it was a dwemer object, and if so "melt it down" by deleting it and adding a number to a Global that I will use elsewhere. But I drop stuff in the Lists on the table, and nothing happens.