Skip to content

OnFishingRodCast

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnFishingRodCast( BaseFishingRod instance, BasePlayer ownerPlayer, Item currentLure )
{
    Puts( "OnFishingRodCast works!" );
}

Location

  • BaseFishingRod::Server_RequestCast(BaseEntity/RPCMessage msg)
csharp
//---
	BasePlayer ownerPlayer2 = base.GetOwnerPlayer();
	if (ownerPlayer2 != null)
	{
		Facepunch.Rust.Analytics.Azure.OnStartFish(ownerPlayer2, currentLure, vector);
	}
	Interface.CallHook("OnFishingRodCast", this, ownerPlayer, currentLure);
}

Released under the MIT License.