Jump to content

Detect When the Player Consumes Any Item?


Haravikk

Recommended Posts

I'm trying to check a condition whenever the player consumes anything such as using a stimpack, food, water, alcohol etc. I know that it's possible to create individual items that can detect when they're consumed, but what I really need is to be able to detect any item being consumed, not specific items.

 

I don't see any obvious event to listen for; only OnItemRemoved seems close, though I'm unclear whether it applies to consumed items, and it gives me no way to distinguish between items consumed versus dropped if even if does.

 

Is there an event I can listen to in order to detect item consumption?

 

If it isn't, a possible alternative would be for me to render the player unable to use consumable items somehow, is that possible instead?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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