Skip to content

OnPlayerAssist

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnPlayerAssist( BasePlayer instance, BasePlayer player )
{
    Puts( "OnPlayerAssist works!" );
}

Location

  • BasePlayer::RPC_Assist(BaseEntity/RPCMessage msg)
csharp
//---
	}
	if (!this.IsWounded())
	{
		return;
	}
	if (Interface.CallHook("OnPlayerAssist", this, msg.player) != null)
	{
		return;
	}
	this.StopWounded(msg.player);
	msg.player.stats.Add("wounded_assisted", 1, (Stats)5);
//---

Released under the MIT License.