Skip to content

OnBradleyApcPatrol

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnBradleyApcPatrol( BradleyAPC instance )
{
    Puts( "OnBradleyApcPatrol works!" );
}

Location

  • BradleyAPC::UpdateMovement_Patrol()
csharp
//---
	this.nextPatrolTime = Time.time + 20f;
	if (this.HasPath() && !this.IsAtFinalDestination())
	{
		return;
	}
	if (Interface.CallHook("OnBradleyApcPatrol", this) != null)
	{
		return;
	}
	IAIPathInterestNode randomInterestNodeAwayFrom = this.patrolPath.GetRandomInterestNodeAwayFrom(base.transform.position, 10f);
	IAIPathNode closestToPoint = this.patrolPath.GetClosestToPoint(randomInterestNodeAwayFrom.Position);
//---

Released under the MIT License.