1. There is no plugin that uses the consume hook, and I was wondering how do I get the BasePlayer info of the consumer so that I can edit the player's stats? (like health)
     
  2. Hi

    I haven't tested this but it should point you in the right direction:

    Code:
            void OnConsumableUse(Item item)
            {
                BasePlayer ownerPlayer = item.GetOwnerPlayer();
                float newHealth = 100f;
                ownerPlayer.ChangeHealth(newHealth);
            }
    You can retrieve the owner of the consumable via item.GetOwnerPlayer. After that you should be able to change things like health. I suppose you could even add conditions for the type of consumable allowing you to override the effects of various consumed items.
     
  3. it works like a charm! How did you you find out about GetOwnerPlayer()?
     
  4. Glad it works :) I looked at the disassembled method list for the BasePlayer class
     
  5. I attach the it as reference, but I don't know how to read it, but Idk what yo search up for tutorials on