Skip to content

OnPlayerRevive

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnPlayerRevive( BasePlayer GetOwnerPlayer(), BasePlayer player )
{
    Puts( "OnPlayerRevive works!" );
}

Location

  • MedicalTool::GiveEffectsTo(BasePlayer player)
csharp
//---
	}
	BasePlayer ownerPlayer = base.GetOwnerPlayer();
	Facepunch.Rust.Analytics.Azure.OnMedUsed(ownerItemDefinition.shortname, ownerPlayer, player);
	if (player != ownerPlayer)
	{
		if (Interface.CallHook("OnPlayerRevive", this.GetOwnerPlayer(), player) != null)
		{
			return;
		}
		if (player.IsWounded() && this.canRevive)
		{
//---

Released under the MIT License.