OnLoseCondition not working
Discussion in 'Rust Development' started by Deicide666ra, Jul 31, 2015.
-
Wulf Community Admin
No, it hasn't change at all.
-
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?
-
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. -
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
