npc sequences
Post Reply
Quote
Re: npc sequences
Posted by Chaffing_Weasel on Fri Feb 25th at 12:22pm 2005


Hello all, i'm having a problem trying to make an NPC do something. Mainly to do with talking and sitting down. I want to know how to trigger an NPC to talk by 'using' him (i.e. pressing E), i can't figure it out. Also about the sitting down problem, i want a certain citizen to talk while he is sat on a chair (like at the start of hl2 with the guy by the kitchen desk). Any one know any tips on how to do this sort of thing?

would appreciate the help greatly.....





Quote
Re: npc sequences
Posted by beguiledfoil on Fri Feb 25th at 6:02pm 2005


I'm actually not sure about the "using" bit, so I'm not going to speculate on that.

As for the sitting, just set it up in Face Poser exactly as you would "walking" (see the sdk examples for how to do this) except play the npc's sitting animation instead. Place a target where you want them to sit, and it should work out. I'm not sure if every NPC has a sitting animation, so you may be out of luck (unless you want to make your own, in which case, I can't help ya smiley )





Quote
Re: npc sequences
Posted by Chaffing_Weasel on Wed Mar 2nd at 11:17am 2005


Sorry if you didn't understand about the 'using' bit, what i meant is when you go up to an item or NPC and select them by pressing the default use key (E). Normally when you select an NPC they talk. My fault if you didn't recognize what i meant, it did sound a bit wierd!

Anyway, thanx for the help mate....





Quote
Re: npc sequences
Posted by Chaffing_Weasel on Wed Mar 2nd at 11:20am 2005


Just wandering, anyone else who could give me any tips about this subject? It's one that has confused me greatly, heh.



Quote
Re: npc sequences
Posted by Med_MapGuy on Fri Mar 4th at 5:51am 2005


Umm... Maybe you should just stick to trigger_once! Thats kinda what I did. If not, maybe an invisible func_button?? (Passable selected?)



Quote
Re: npc sequences
Posted by Horned King on Fri Mar 4th at 3:40pm 2005


Just add an output on your NPC or "On Use" or whatever it is, to target a scripted sequence that you have parented to the NPC. As for sitting, its also a scripted sequence, just make the post idle loop your sitting animation. Combine the two to make the guy talk when you "use" him as he sits in a chair.

HK






Post Reply