Want NPC to move to path_corner after teleport
Post Reply
Quote
Re: Want NPC to move to path_corner after teleport
Posted by greensinge on Tue Jan 17th at 3:18am 2006


I've been making a small stargate-based map, and i've managed to make two seperate locations, each with its own stargate and activation panel. The stargate is activated by the switch, which opens the portal and enables teleportation, and it makes it possible for the player, any NPC, and any physical object to pass through the portal (teleporter).

Here is my problem:

Whenever i try to send an NPC through the portal, they do manage to transport through it, but for some reason they just keep coming back through, then going back out, then coming back through, etc. etc. until the portal shuts down again (the portal is set on a 10 second timer).

What i want the NPC's to be able to do, is walk from one location, into the stargate, come out the other side, and continue down the platform into the other location then stop; instead of just prancing about like an idiot in between dimensions!!! It's almost as if they are mocking me!

The following two pictures are of the two seperate locations and the two stargates:

Pretty cool lookin', huh?

So if anyone has any idea how i can make the NPC's stop being idiots! Please let me know as soon as possible. I will probably upload this little map for people to mess around with, once it's completed of course; therefore the sooner i get help with this the better!

Thanks chaps!




...and he saw that it was GOOOOOD!



Quote
Re: Want NPC to move to path_corner after teleport
Posted by wil5on on Tue Jan 17th at 8:35am 2006


Perhaps use some sort of scripted sequence at each end which is triggered when an npc goes through the stargate?


"If you talk at all during this lesson, you have detention. Do you understand?"
- My yr11 Economics teacher



Quote
Re: Want NPC to move to path_corner after teleport
Posted by greensinge on Tue Jan 17th at 3:33pm 2006


I've just tried that but it didnt really work. The NPC comes out of the other stargate and lands on a trigger iv made which is supposed to start a sequence for him to walk down the platform to the end of the cave. It still doesnt work though, he just stands there as if the trigger doesnt apply to him, or the sequence isnt working or something. (The trigger is set so that anything that touches it causes the sequence to begin, but it still doesnt work; and yes, the sequence target is that specific npc).

Here's a diagram of what happens, just so you can all understand a little better:

Ideally however i would like it so that anyone (as aposed to just one specified NPC) who walks through the portal will automatically go down the platform and move out of the way. Everytime i go through the portal after the NPC i get stuck inside them and its pretty annoying.





Quote
Re: Want NPC to move to path_corner after teleport
Posted by SmokersCough on Tue Jan 17th at 4:38pm 2006


First things first make sure the scripted_sequence has these flags set

Priority script, No Interruptions, overide Ai.

Ensure you have path nodes that are placed in front of the ramp and just after the ramp (i'm assuming there is a flat surface there).

I'm not sure how you trigger the NPC to go through the teleport if this is done using a scripted sequence to move him to the destination to teleport try setting that scripted sequence to have it's next script set to the one on the otherside of the portal. This should hopefully get things working, if not please explain in more detail how you are getting the npc to teleport? Also make sure that if the bursh the player touches after going through the portal has the option to be trigger by NPC's should be in the flags or something (i think) good luck.

Edit: Sorry didn't notice the rest, make sure you have path nods, it sounds like the bpc doesn't know where to go as there are no path nodes. especially if they are following you. Also i have found some issues with having scripted sequences and changing them, normally i now delete them and replace them. I had issue with npcs not being able to navigate over func_brush based objects until i deleted and replace the scripted_Sequence.





Quote
Re: Want NPC to move to path_corner after teleport
Posted by Dark_Kilauea on Thu Jan 19th at 3:33am 2006


Are you using info_nodes?

If not, put one in on each side of the portal.



Dark_Kilauea
DVS Administration
http://www.dvstudio-production.com/




Post Reply