1. The OnLoseCondition hook doesn't seem like it's working... was it deprecated and replaced by something else?
     
  2. Wulf

    Wulf Community Admin

    No, it hasn't change at all.
     
  3. Well maybe I'm misunderstanding what triggers it.. but when I shoot my gun or hit something with a hatchet, i see the condition go down but the hook is not triggered at all. I'm using the function signature that's in the documentation.. is that still valid?
     
  4. Wulf

    Wulf Community Admin

    I've never used it, so I'm not sure.

    You could take a look at https://github.com/OxideMod/Oxide/blob/master/Oxide.Game.Rust/RustCore.cs#L879 too.
     
  5. Well OK, I managed to get the hook going by removing the "ref" in the parameter in my code, but of course now if I modify the amount it has no effect since it's not a reference. If I put the ref back, the hook isn't being called.

    Anyways not a priority, but I guess it should be added to the todo list :)