If you're making an NPC/enemy go somewhere using waypoints that isn't a regular patrol route (i.e. the actor walks/runs somewhere then stops), sometimes, when the actor gets to the last WP, he/she will stop a few yards short of where the actual WP entity is. This can be really bad, if the actor just happens to stop in front of a doorway or something.
An easy way to prevent this from happening is to add another waypoint "after" the last waypoint, and place it directly "on" the "last" waypoint.
For example, if you're last WP is numbered 9, and you have the "next waypoint" as -1 (to make the actor stop when he/she gets to this waypoint), you can make another WP (via copy/paste), place it directly over WP #9, number it 10 and the "next WP" as -1 (again, to make the actor stop). Then, set the "next WP" for WP #9 to 10, and you're set!
This makes it so that if the actor stops "short" of the last WP, he/she will be right where it is, since the 2nd-to-last WP is right were the last is.
Handy, indeed.
An interesting note on WayPoints
- Max-Violence
- Wandering Hero
- Posts: 1221
- Joined: Thu Apr 18, 2002 4:15 am
- Location: In my own personal vault
- Contact:
An interesting note on WayPoints
Closing our eyes forces us to look
At the darkness inside.
Our emotions always find us
Regardless of where we hide.
maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
At the darkness inside.
Our emotions always find us
Regardless of where we hide.
maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
- Max-Violence
- Wandering Hero
- Posts: 1221
- Joined: Thu Apr 18, 2002 4:15 am
- Location: In my own personal vault
- Contact:
I just remembered/realized that this actually doesn't work sometimes... Usually, yes, but not always... there's gotsta be a 100% fix for 'em...
Closing our eyes forces us to look
At the darkness inside.
Our emotions always find us
Regardless of where we hide.
maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
At the darkness inside.
Our emotions always find us
Regardless of where we hide.
maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
- OnTheBounce
- TANSTAAFL
- Posts: 2257
- Joined: Thu Apr 18, 2002 8:39 am
- Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland
- Contact:
In addition to making life hard for scripting purposes this whole "don't go all the way to the waypoint" thing can be a bit ugly in other ways, too. For instance if you have people marching around and you're trying to make it look like they're doing things and it can look like total ass if your little patsy/actor stops about two yards away from a counter and fiddles around...
OTB
OTB
"On the bounce, you apes! Do you wanna live forever?!"
- Max-Violence
- Wandering Hero
- Posts: 1221
- Joined: Thu Apr 18, 2002 4:15 am
- Location: In my own personal vault
- Contact:
I guess one could throw in a Preserved Move Unit action in somewhere... but...
Bleh.
Bleh.
Closing our eyes forces us to look
At the darkness inside.
Our emotions always find us
Regardless of where we hide.
maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
At the darkness inside.
Our emotions always find us
Regardless of where we hide.
maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
- Max-Violence
- Wandering Hero
- Posts: 1221
- Joined: Thu Apr 18, 2002 4:15 am
- Location: In my own personal vault
- Contact:
I've noticed it only happens when the WP's are close to each other... hmmmm...
Closing our eyes forces us to look
At the darkness inside.
Our emotions always find us
Regardless of where we hide.
maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006
At the darkness inside.
Our emotions always find us
Regardless of where we hide.
maxviolence@hotmail.com
http://mvmaphub.duckandcover.cx <--- Updated July 10th, 2006