Jump to content

Event Activation Question


tek753

Recommended Posts

Hello,

 

I was hoping to make an item that, upon "clicking" in inventory, would fire a script.

What is the best approach and which event?

 

I tried onactivate on a copy of a torch, and activate fired the minute I picked it up.

OnEquipped, however, fired when I clicked the torch in inventory. This is good. Except the torch was actually equipped. I didn't want that (so the player can click multiple times in theory).

 

Can I use this torch but either intercept and prevent it from being equipped (but still fire the onequipped script)?

Is there another item I can use instead that can fire an activation script only when "clicked" in inventory? Which event would be ideal, and which item?

 

Thank you for taking the time to read this, please let me know what you think

 

Thanks!

Edited by tek_7
Link to comment
Share on other sites

  • Recently Browsing   0 members

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