ScriptName _amm_CoffeeTeaActivatorScript Extends ObjectReference

Actor Property acPlayer Auto
Potion[] Property ptCoffeeTea Auto
GlobalVariable Property gvSelected Auto

Event OnActivate(ObjectReference akActionRef)

	Int iSelected = gvSelected.GetValue() As Int
	
	If (akActionRef == acPlayer)
		acPlayer.AddItem(ptCoffeeTea[iSelected])
	Endif

EndEvent
