All pastes #934803 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-09 02:10 UTC
rendered paste body
	member PathCheck(float X, float Y, float Z)
	{
		
		variable float Disper
		variable float Yper
		variable float Xper
		variable float Xper1
		variable float Yper1
		variable int count=1
				do
			{
				count:Inc
			}
			while ${Navigator.OpenNavPath.Get[${Math.Calc[${count}+1]}](exists)}
			
			Xper1:Set[${Navigator.OpenNavPath.Get[${count}].Location.X}]
			Yper1:Set[${Navigator.OpenNavPath.Get[${count}].Location.Y}]
			
	if ${Math.Distance[${X},${Y},${Xper1},${Yper1}]}<1
	{
			return 1
					
	}
	else
	{
		return 0
	}
	
}