Npc Traveling Back To Original Location

Post » Wed Oct 13, 2010 10:05 am

I'm trying to set up an NPC when the player reaches his location, he will follow the player
and eventually be dropped off in Megaton.

The above works as described, the Sharing and Caring module works to facilitate this.

However, to prevent the NPC from moving around and stay in an exact spot befor retreval, i created an AI package Travel with condition "getincell cell name xxx == 01," then distance 0. The intent is the NPC will not move from his spot in that area until SSC'd and dropped off by the player.

Other packages (eat sleep complain, sandbox) are present in the NPC taken from other Megaton NPC's and added to this NPC, presumibly they would kick in once in Megaton

Unfortunately, it is being reported the NPC is traveling all the way BACK to the retreval location after being released by the player.


I thought the added AI Travel Package would only be active in that certain cell.

What should I do to have the travel package activbe ONLY in a specific cell?
Or is there a better AI package suited for this purpose?

Thanks
User avatar
Yung Prince
 
Posts: 3373
Joined: Thu Oct 11, 2007 10:45 pm

Post » Wed Oct 13, 2010 8:19 am

Might be because a package is set to editor location? If he's sandboxing at editor location and then travels to where ever, when the travel package stops and the sandbox kicks back in - he'll go back to his editor location (if it's not in the same cell, he'll "travel" back even though there's no travel back package).
User avatar
sally coker
 
Posts: 3349
Joined: Wed Jul 26, 2006 7:51 pm

Post » Wed Oct 13, 2010 3:25 am

I'm trying to set up an NPC when the player reaches his location, he will follow the player
and eventually be dropped off in Megaton.

The above works as described, the Sharing and Caring module works to facilitate this.

However, to prevent the NPC from moving around and stay in an exact spot befor retreval, i created an AI package Travel with condition "getincell cell name xxx == 01," then distance 0. The intent is the NPC will not move from his spot in that area until SSC'd and dropped off by the player.

Other packages (eat sleep complain, sandbox) are present in the NPC taken from other Megaton NPC's and added to this NPC, presumibly they would kick in once in Megaton

Unfortunately, it is being reported the NPC is traveling all the way BACK to the retreval location after being released by the player.


I thought the added AI Travel Package would only be active in that certain cell.

What should I do to have the travel package activbe ONLY in a specific cell?
Or is there a better AI package suited for this purpose?

Thanks


getincell is sorta a piece of [censored]. Try some other condition. Anything but getincell.

You might instead put down an Xmarker and give it a REF ID and require the distance to be a certain thing from that Xmarker.

If you want an NPC to wait, the prime package for that is GUARD, in my experience.

Also - - an NPC will not actually evalute onto the new package for like 15 seconds unless you issue an .evp command on the NPC. A lot can happen in 15 seconds, so be aware.
User avatar
Clea Jamerson
 
Posts: 3376
Joined: Tue Jun 20, 2006 3:23 pm

Post » Wed Oct 13, 2010 7:52 pm

Might be because a package is set to editor location? If he's sandboxing at editor location and then travels to where ever, when the travel package stops and the sandbox kicks back in - he'll go back to his editor location (if it's not in the same cell, he'll "travel" back even though there's no travel back package).


YES, there is one there one "editor location " a the package of one NPC but not the other (I have two but I thought they were set up the same; it is not clear if both of them were doing it).


getincell is sorta a piece of [censored]. Try some other condition. Anything but getincell.

You might instead put down an Xmarker and give it a REF ID and require the distance to be a certain thing from that Xmarker.

If you want an NPC to wait, the prime package for that is GUARD, in my experience.


I do have an Xmarker already and they do stay on that marker (distance 0). I was hoping once they were out of the cell, the package would no longer engage, but maybe that GUARD will make the difference.

.evp command on the NPC.


I have to study how to use this...

thanks
User avatar
Rachyroo
 
Posts: 3415
Joined: Tue Jun 20, 2006 11:23 pm


Return to Fallout 3