question on using waypoints and an arrow to guide a player.

OK so in an effort to guide the player through this huge level I built. I built an arrow in 3ds max and set it to look at and point towards an empty game object. How can I get it to "point" to the next way point once the player reaches it. I need to guide the player towards a temple and using the arrow seems like the best way. I originally had it looking at the temple, however, it would lead the character over mountains that they can't climb. so I figured by setting several empty game objects as "way point" I could move the player in the right direction, but once you reach a way point I can't get it to move on to the next one.

You could put the empty gameobjects in an ordered list and everytime the player gets to an arrow, iterate to the next arrow in your list.

How about something like this?

private var waypoints : Array;

function Start() {
    waypoints = new Array();
    waypoints.length = 3;

    var waypoint1 = GameObject.Find("Waypoint1");
    var waypoint2 = GameObject.Find("Waypoint2");
    var waypoint3 = GameObject.Find("Waypoint3");

    waypoints[0] = waypoint1;
    waypoints[1] = waypoint2;
    waypoints[2] = waypoint3;
}

-- Glenn