Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enemies don't follow pathnodes...
Phoroneus Offline
Member

Posts: 141
Threads: 12
Joined: Feb 2011
Reputation: 0
#10
RE: Enemies don't follow pathnodes...

If memory serves me right, ShowEnemyPlayerPosition gives the monster a snapshot of where you are at the time it's called, rather than a permanent view of your location. If you call it right at the start, the monster will run to your spawn point in search of you. If you're still in LOS or audible to the monster, it'll continue to hunt you, otherwise it will search briefly and then become confused and just stop activity (unless it has another assignment to get to).

Your best bet to have a monster constantly chasing you is to give it a full nodemap (around and between all obstacles and anywhere you might put non-breakable obstacles) and then repeatedly call ShowEnemyPlayerPosition. If your intent is only to have the monster chase the player, then ShowEnemyPlayerPosition is probably more than you want, since it'll run faster than the player can get away from it, and will ultimately kill the player if they can't get to safety in time. There are a bunch of other methods to get it to follow you menacingly without it actually killing you, but they're a bit more complicated.

Of course, the "cutting-corner" problem is the first thing you should check for, since that'll confuse the heck out of the AI.

[Image: at_9365860.png]

Follow Harvest.
09-07-2011, 03:08 AM
Find


Messages In This Thread
Enemies don't follow pathnodes... - by Lewk - 09-06-2011, 09:40 PM
RE: Enemies don't follow pathnodes... - by Lewk - 09-06-2011, 10:23 PM
RE: Enemies don't follow pathnodes... - by Lewk - 09-07-2011, 01:10 AM
RE: Enemies don't follow pathnodes... - by Lewk - 09-07-2011, 01:28 AM
RE: Enemies don't follow pathnodes... - by Lewk - 09-07-2011, 01:55 AM
RE: Enemies don't follow pathnodes... - by Phoroneus - 09-07-2011, 03:08 AM
RE: Enemies don't follow pathnodes... - by Lewk - 09-07-2011, 02:18 PM



Users browsing this thread: 4 Guest(s)