Jump to content

Recommended Posts

Posted (edited)

Hi all,

 

I am looking for a way to use/cast something when I use an misc item in my inventory.

By now, the effet start when the item is picked up and nothing on the use from inventory.

 

I read some tuto and things here and there and understand that it seems the "activate" would be linked to the item type.

 

Today i am planning to use a trick in which i would equip/unequip to simulate that sort of use but it is not really what i am looking for.

 

Maybe somebody could help me with a way to get it working as intended ?

 

Can someone help me please ?

Edited by Chronepsys
Posted

For anything not consumed when used from the inventory (i.e. not potions, poisons, food or ingredients), OnEquipped is the event used to listen for any "activation" attempts.

 

For example, my inventory management mod for SSE has a series of objects that the player carries in their inventory. When used, these objects open up a container that corresponds with their category. The script used is as follows, feel free to adapt to your needs.

 

  Reveal hidden contents

 

 

Posted (edited)

Unfortunately, i get no effect.

Here is the code i use.

Can you take a look please ?

 

Maybe it comes from the type of item i use (miscItem)

 

 

  Reveal hidden contents

Edited by Chronepsys
  • Recently Browsing   0 members

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