Page 1 of 1

waypoint trouble

Posted: Thu May 09, 2002 1:08 am
by Howlround
I'm trying to setup some patrols. I know how to use waypoints and I have them setup right, but the enemy doesn't follow the path. I have 7 waypoints and the enemy follows this path instead. He goes from 1 to 2 then to 4 then to 6 where he stops. I double checked and I have the waypoints numbered right. Any Ideas? Thanks for the help guys.

Posted: Thu May 09, 2002 1:19 am
by OnTheBounce
Hmmm...

K, let's go through some common errors:
  • Did you number the Waypoints starting at 0?
  • Is the player index's AI set to "Waypoint" and not "Waypoint, Random" or something similar?
  • Is the Player Index's "Mobility" higher than 4? If it's set very low they will stop, often for long periods of time before finally moving on.
  • Do you have the "Next Waypoint" fields filled in correctly on the waypoint entities?
That's all I can think of right now.

Hope this helps,

OTB

Posted: Thu May 09, 2002 1:21 am
by Max-Violence
Step #1: ALWAYS have your first WP numbered 0, then go from there. That alone could very well fix your problem.

If not, then my only advice is to double- and triple-check everything:

Make sure all of the WP entities are 1 level above the floor they are placed "on."

This might be a little obvious, but check the "next" box for the WP's before the ones being skipped for commas.

i.e. If you have WP's 0 - 6 (like you're gonna have), make sure there aren't any commas ( , ) anywhere in either numbered fields. I don't know what putting a comma in the "current" box does, but if you put, say, 1,2 in the "next" box, the actor will go to either WP 1 or WP 2. This is a good thing for when you want varied patrol routes, but it doesn't sound like that's the case here.

Other than double-checking things, I'm not sure what could be wrong.

Is this the first patrol route you've ever set up? If so, there might be an error in the Player Index definition of the actor. Remember: everything is case-sensitive!!!

Good luck!

Posted: Thu May 09, 2002 1:22 am
by Max-Violence
Um, hey there, OTB :)

Posted: Thu May 09, 2002 1:25 am
by OnTheBounce
*hehe* Notice that we both suggested the same thing first. (Waypoint 0)

OTB

Posted: Thu May 09, 2002 1:37 am
by Howlround
thanks for the help I was starting with number 1. that's what the problem was.