Solved Anyway to determine when a player heals?
Discussion in 'Rust Discussion' started by Caffeine, Oct 4, 2016.
-
Oxide API for Rust
This should be similar to what you're wanting, no? -
Wulf Community Admin
There aren't any hooks that are triggered when a player is healed right now that I know of. The best you could do is check after X amount of time to see if the health changed until a hook is added.
-
Code:public override void OnHealthChanged(float oldvalue, float newvalue) { base.OnHealthChanged(oldvalue, newvalue); this.metabolism.isDirty = true; }
-
Wulf Community Admin
-
-
Wulf Community Admin
-
[DOUBLEPOST=1475727282][/DOUBLEPOST] -
Nevermind I see it here
[Rust] Added OnPlayerHealthChange(BasePlayer player, float oldValue, float newValue)"
I need to remember to check the release notes from now on