Jump to content

Run something when consuming a item


Recommended Posts

Yes, you can use a reference alias that points at the player, or put a spell ability on the player. Attach a script to either with the onObjectEquipped event.

 

Potion Property SomePotion Auto 

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference) 
    If akBaseObject == SomePotion 
        ;do something 
    Endif 
EndEvent
Link to comment
Share on other sites

 

Yes, you can use a reference alias that points at the player, or put a spell ability on the player. Attach a script to either with the onObjectEquipped event.

 

Potion Property SomePotion Auto 

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference) 
    If akBaseObject == SomePotion 
        ;do something 
    Endif 
EndEvent

 

 

Thanks you are amazing, I attached it to a magic effect on a new spell.

Can't believe it was that easy.

Edited by EddieTheEagle
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...