Skip to content

CanCastFishingRod

Usage

  • No return behavior

Example Autogenerated

csharp
private void CanCastFishingRod(  )
{
    Puts( "CanCastFishingRod works!" );
}

Location

  • BaseFishingRod::Server_RequestCast(BaseEntity/RPCMessage msg)
csharp
//---
	if (!this.EvaluateFishingPosition(ref vector, ownerPlayer, out reason, out this.surfaceBody))
	{
		this.FailedCast(reason);
		return;
	}
	ItemModCompostable itemModCompostable = Interface.CallHook("CanCastFishingRod", ownerPlayer, this, currentLure, vector);
	if (itemModCompostable is bool && !(bool)itemModCompostable)
	{
		return;
	}
	FishingBobber component = base.gameManager.CreateEntity(this.FishingBobberRef.resourcePath, base.transform.position + Vector3.up * 2.8f + ownerPlayer.eyes.BodyForward() * 1.8f, base.GetOwnerPlayer().ServerRotation, true).GetComponent<FishingBobber>();
//---

Released under the MIT License.