Haravikk Posted February 2, 2021 Share Posted February 2, 2021 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 More sharing options...
SKKmods Posted February 2, 2021 Share Posted February 2, 2021 Have a look at base game HC_ManagerScript which uses: RegisterForRemoteEvent(PlayerRef, "OnItemEquipped") ;for hunger effects Link to comment Share on other sites More sharing options...
Recommended Posts