Waypoint help

Blitz3D Forums/Blitz3D Beginners Area/Waypoint help

Hey, create an array with 2 dimensions:

Dim waypoints(10,2) ; create an array to hold 11 way points


the last dimension will be the X - 0 Y - 1 and Z - 2

Create a global variable to hold which waypoint your on.
Global WayPoint = 0


simply increase the global and pull out the co-ords from the array

WayPoint = WayPoint + 1
x = waypoints(WayPoint,0)
x = waypoints(WayPoint,1)
x = waypoints(WayPoint,2)



You could probably create a pivot and place it at the location of the way point and point and move the entity towards the pivot :o)