OnBoatPathGenerate
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnBoatPathGenerate( BaseBoat instance )
{
Puts( "OnBoatPathGenerate works!" );
}
Location
- BaseBoat::GenerateOceanPatrolPath(float minDistanceFromShore, float minWaterDepth)
csharp
public static List<Vector3> GenerateOceanPatrolPath(float minDistanceFromShore = 50f, float minWaterDepth = 8f)
{
object returnvar = Interface.CallHook("OnBoatPathGenerate");
if (returnvar is List<Vector3>)
{
return (List<Vector3>)returnvar;
}
float expr_28 = TerrainMeta.Size.x;
//---