Skip to content

OnNoGoZoneAdded

Usage

  • Return a non-null value or bool to override default behavior

Example Autogenerated

csharp
private void OnNoGoZoneAdded( PatrolHelicopterAI instance, DangerZone zone )
{
    Puts( "OnNoGoZoneAdded works!" );
}

Location

  • PatrolHelicopterAI::NoGoZoneAdded(PatrolHelicopterAI/DangerZone zone)
csharp
//---
{
	if (!PatrolHelicopterAI.use_danger_zones)
	{
		return;
	}
	if (Interface.CallHook("OnNoGoZoneAdded", this, zone) != null)
	{
		return;
	}
	if (zone.IsPointInside(base.transform.position))
	{
//---

Released under the MIT License.