AI Follow Problems

Post » Fri Nov 06, 2009 2:03 am

Hey

I was doing a quest in my mod when I discorvered a thing I could not fix after hours of trying. When I click on a NPCs AI and then AI packages and then select the follow or escort package I get stuck.
In game he follows me around where ever I go, and thats good, BUT, he doesnt stop following me after we reach the specific point :(

This is how it looks like:

Target: player
Duration:0
Follow to: Sardeth Ancestral Tomb
Specific point: 22, 19, 5

I've tried to do the same thing with escort, and with escort and follow, but nothing works :( The NPC just keeps following me.

Is maybe because the target is player? But it shouldnt make any difference right?

thanks

Kithal.
User avatar
clelia vega
 
Posts: 3433
Joined: Wed Mar 21, 2007 6:04 pm

Post » Fri Nov 06, 2009 1:33 am

The best thing to do is give the NPC the default wander package and then use dialog to have it follow the player (Result box: AIFollow Player 0 0 0 0). Now, put down an invisible activator near where you want the NPC to stop following and attach this script to it:

Begin StopFollowScriptif ( npc_id->GetAIPackage == 3 )npc_id->AiWander 512, 5, 0, 0, 20, 0, 0, 10, 30, 0, 0, 0;this will cause the NPC to stop following the player and wander around. If you want the NPC to stay in one spot, use 0 0 0 0 instead.endifEnd


Conversely, you could setup a greeting for the NPC that causes it to stop following the player once they reach the proper cell.
User avatar
Charlotte Buckley
 
Posts: 3532
Joined: Fri Oct 27, 2006 11:29 am

Post » Thu Nov 05, 2009 11:03 pm

thanks you, yes I know that it can be done that way, but I was just wondering if I could do it without any dialog.

Well maybe I just have to do it this way then :)

thanks

Kithal.
User avatar
Sherry Speakman
 
Posts: 3487
Joined: Fri Oct 20, 2006 1:00 pm

Post » Fri Nov 06, 2009 4:28 am

Hello there!
I am working on a escort quest and I am wondering how to activate a dialog when the npc gets to a certain place, could you tell me? :cookie:
User avatar
Zach Hunter
 
Posts: 3444
Joined: Wed Aug 08, 2007 3:26 pm

Post » Fri Nov 06, 2009 2:41 am

You have to use ForceGreeting in their script.
User avatar
x_JeNnY_x
 
Posts: 3493
Joined: Wed Jul 05, 2006 3:52 pm


Return to III - Morrowind