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 = GetOwnerPlayer();
		if (ownerPlayer2 != null)
		{
			Facepunch.Rust.Analytics.Azure.OnStartFish(ownerPlayer2, currentLure, pos);
		}
		Interface.CallHook("OnFishingRodCast", this, ownerPlayer, currentLure);
	}
}

Released under the MIT License.