YoYo,
I made some kinda crappy waypoint bot, so far so good it walks to the next ones, but he thinks he is already there when the next Waypoints are on southeast only... :confused:
here's my approach
XValue is the X of my char currently, same goes for YValue.Code:float DistanceToCheck = 0.5f; getxyz(); float xDistance = NextXWaypoint - XValue; float yDistance = NextYWaypoint - YValue; if (xDistance < DistanceToCheck) { if (yDistance < DistanceToCheck) { MoveToNextWaypoint(); } }
Someone that can help me? :wave: