enderalse/scripts/source/_00e_giveitemonactivate.psc

10 lines
243 B
Plaintext
Raw Normal View History

Scriptname _00E_GiveItemOnActivate extends ObjectReference
Armor Property ItemToAdd Auto
Event OnActivate(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer()
Game.GetPlayer().AddItem(ItemToAdd, 1)
self.delete()
endif
EndEvent