Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Thu 17/04/2003 21:38:40

Title: following NPC
Post by: on Thu 17/04/2003 21:38:40
Hi!

I was wondering about an following NPC, its great but he stops right in front of the main character.

So my question is this: is it possible to make the character stop walking some distance from the main character? And how do I adjust the distance?

Thanks!
Title: Re:following NPC
Post by: scotch on Fri 18/04/2003 13:47:34
Have you tried FollowCharacterEx?

it goes
FollowCharacterEx (CHARID, int chartofollow, int dist, int eagerness)

the distance is the distance it stays away from the character.

try:
FollowCharacterEx (NPC, EGO, 40, 97);
Title: Re:following NPC
Post by: on Sun 20/04/2003 12:17:32
Thanks very much!! I tried that before but it didnt work but it works now :D