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...
Lewk Offline
Member

Posts: 63
Threads: 6
Joined: Sep 2011
Reputation: 3
#11
RE: Enemies don't follow pathnodes...

(09-07-2011, 03:08 AM)Phoroneus Wrote: 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.




the idea of repeatedly calling ShowEnemyPlayerPosition is working, but when it comes to a corner, it just trys to get straight at me. how do I deal with this? I need it to follow the nodes to get to me.


09-07-2011, 02:18 PM
Find




Users browsing this thread: 1 Guest(s)