Here is the script:
Scriptname antreAddItemKeyOnDeathScript extends defaultAddItemScriptKey property _KeyToAdd Autobool property unique = True Auto{If the player already has this item, don't give the actor one. Defaults to True for keys.};Stores the key. DefaultAddItemScript takes care of the rest.;Event OnInit()Event OnDeath(Actor killer) ParentUnique = Unique ItemToAdd = _KeyToAddEndEventOnInit works and the key is added but OnDeath is not working.
It compiles ok so I am at a loss to what the problem is.
Any ideas on what is keeping this from working?

