Event OnItemRemoved() fires when you pickup potions?

Post » Tue Jul 15, 2014 12:22 am

This is my trigger script for the drink potion animation feature in my mod.

Can anyone see WHY this is now triggering just when the player "picks up" a potion into their inventory?

This same script has been working for over 2 years now all the sudden I just noticed I am getting this issue.

Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer)
if (me.IsDead())
return
endif
If !akItemReference
If !akDestContainer
If akBaseItem.HasKeyword(VendorItemPotion)
If me.IsOnMount() == false
GoToState("BusyState")
DrinkAnima()
GoToState("NormalState")
endif
endif
endif
endif
endevent
User avatar
electro_fantics
 
Posts: 3448
Joined: Fri Mar 30, 2007 11:50 pm

Return to V - Skyrim