Skip to content

OnPlayerHealthChange

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnPlayerHealthChange( BasePlayer instance, float oldvalue, float newvalue )
{
    Puts( "OnPlayerHealthChange works!" );
}

Location

  • BasePlayer::OnHealthChanged(float oldvalue, float newvalue)
csharp
public override void OnHealthChanged(float oldvalue, float newvalue)
{
	if (Interface.CallHook("OnPlayerHealthChange", this, oldvalue, newvalue) != null)
	{
		return;
	}
	base.OnHealthChanged(oldvalue, newvalue);
	if (!base.isServer)
//---

Released under the MIT License.