Solved Consuming rad pills hook?

Discussion in 'Rust Development' started by w4ssup, Sep 15, 2015.

  1. what is it? is there one?
     
  2. Wulf

    Wulf Community Admin

  3. hmm, weird, when I looked for it, I couldnt find it, probably looking at the wrong place. Thanks
    [DOUBLEPOST=1442283745][/DOUBLEPOST]on the doc, it says
    Code:
    void OnConsumableUse(Item item)
    {
        Puts("OnConsumableUse works!");
    }
    but how do I set it to specifically radpills instead of all the items?
     
  4. Code:
    if(item.name.Contains("pill"))
    
    ??