Solved OnConsumableUse and present

Discussion in 'Rust Development' started by sami37, Jan 27, 2017.

  1. Hello,

    I am trying to modify loot from present, but both upgrade and unwrap use OnConsumableUse, how i can make difference between each action?
     
  2. If I am not mistaken the upgrade option for presents requires multiple presents so the amountToConsume will not be 1 as it will be for unwrapping.
    Code:
    private void OnConsumableUse(Item item, int amountToConsume)
     
  3. Thx I'll try that