OnPlayerRecover hook not being called
Discussion in 'Rust Development' started by Romzes, Sep 20, 2016.
-
Wulf Community Admin
The hook is called when the player is no longer wounded and has recovered. When are you expecting it to be called?
-
Imagine that I was wounded. The player is a long time, and he cries no one helps. And then after a while he did not die and he rises, in such a situation the hook "OnPlayerRecover" does not work.
PS: Sorry for my bad English. -
The duration you've called "The player is a long time" is always a time window between 40 and 50 seconds.
The player will ALWAYS Die if no one does assist him or use medical tools.
Those events/actions will change the the wounded player flag back to FALSE, and the hook is called. -
There used to be a bug where players would obtain health regen before dying and then get up by themselves.
I don't know if that bug still exists or whether it affects that flag, though. -
Must be an older one...can remind me only very blurred to anything eventually similar.
-
The player himself sometimes rises. When this occurs "OnPlayerRecover" is not called.
-
Yea, understood. But the "FacePunch"-code says, either he gets assisted (bandaged) or being healed with medical items. and that is covered.
Oxide can't cover a "maybe-missed--random-heal-scenario" by FP. So you should should live with it until FP maybe fixes it. -
How do I create a crutch to fix this problem?
