All pastes #410520 Raw Edit

Untitled

public text v1 · immutable
#410520 ·published 2007-03-26 13:37 UTC
rendered paste body
NewPatrolPoint:SetRegion[${SurroundingRegions.Get["${Counter}"].CenterPoint}]

		if !${Math.Atan[${NewPatrolRegion.CenterPoint.X},${NewPatrolRegion.CenterPoint.Y}]}>=${Me.Heading.DegreesCCW}-90&&!${Math.Atan[${NewPatrolRegion.CenterPoint.X},${NewPatrolRegion.CenterPoint.Y}]}<=${Me.Heading.DegreesCCW}+90
		{
		ReturnRegion:Insert[${NewPatrolRegion}]
		
		}
		Counter:Inc
	}
	while ${Counter}<${ForwardRegions.Size}
	Return ${ReturnRegion}
}