enderalse/scripts/source/_00e_nq_g_05_onplantcollected.psc

17 lines
414 B
Plaintext

Scriptname _00E_NQ_G_05_OnPlantCollected extends ObjectReference
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
if akNewContainer == Game.GetPlayer()
NQ_G_05.UpdatePlantCounter(iType, 1)
EndIf
if akOldContainer == Game.GetPlayer()
NQ_G_05.UpdatePlantCounter(iType, -1)
EndIf
EndEvent
_00E_NQ_G_05_Functions Property NQ_G_05 Auto
int Property iType Auto