NPCs looking at player during script? Created 18 years ago2005-06-14 18:15:22 UTC by Playbus Playbus

Created 18 years ago2005-06-14 18:15:22 UTC by Playbus Playbus

Posted 18 years ago2005-06-14 18:15:22 UTC Post #114471
This has been driving me mad. I hope someone can help.

Basically, this is what I have.

1. Player starts in a little cell
2. NPC_metropolice comes into the cell and tells the player to follow him.
3. NPC_metropolice then buggers off down the corridor, for the player to follow.

My problem is this:

Although all this works fine, I can't get the NPC_metropolice to look at the player. If the player stays in the spot he starts in, it looks fine, like the cop is telling him what to do. But if the player moves, then it seems that the cop is beckoning at the wall.

How can I make the cop focus on the !player while he says "Follow me, citizen!" ?

Any help much appreciated!
Posted 18 years ago2005-06-14 19:03:24 UTC Post #114473
You can setup a scene in Face Poser, and you should be able to set a target actor to look at (or maybe you can do this in scripted_sequence, not sure.)

Source SDK docs have more nfo on Face Poser.
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 18 years ago2005-06-15 03:27:55 UTC Post #114491
Ah ok, so I have to work out how to use that tool.

shivers

Thanks RabidMokey :)
Posted 18 years ago2005-06-15 03:44:34 UTC Post #114492
It's actually pretty cool, you can do a lot more than standard scripting with the entities.
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 18 years ago2005-06-15 04:12:33 UTC Post #114497
In order to make a scene, would I have to actually "start a new mod" in the SDK?
Posted 18 years ago2005-06-15 04:17:58 UTC Post #114498
No, you should be able to run and make scenes with the default HL2 configuration.
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 18 years ago2005-06-15 04:19:38 UTC Post #114499
Yay!!

Thanks again!!
Posted 18 years ago2005-06-15 06:32:10 UTC Post #114531
Someone on another forum I frequent (not a mapping forum) has some HL2 mapping experience and has shown me a way to do what I need without using the faceposer program.

I don't know if it actually works yet, but his suggestion seems logically sound, and I will be able to test it in about an hour. If it works I will post up how it's done.
Posted 18 years ago2005-06-15 07:58:19 UTC Post #114541
It didn't work :(

So much for logic I guess --- well here's to an evening of learning Faceposer for me!
Posted 18 years ago2005-06-15 15:18:14 UTC Post #114626
I thought in the properties of scripted sequences it said target player or something...

Sorry for the double post (Fixed by Rabideh) but I had a good idea...

Look at the sdk_trainstation5 example map and check the properties of Alyx to see how they made her turn around and look at you.
Habboi HabboiSticky White Love Glue
Posted 18 years ago2005-06-15 15:41:50 UTC Post #114633
That's a logic_choreographed_scene IIRC, which is faceposer~
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 18 years ago2005-06-17 08:24:19 UTC Post #114937
Rabid is right. There is a command you can give an actor in Face poser 2 look at the player. Right click in the appropriate channel and choose "look at actor" in this option select "!player" from the drop down menu labeled "look at actor" and name your action (anything). simple :P
Posted 18 years ago2005-06-18 06:57:11 UTC Post #115125
Yup, that works, thanks :D
You must be logged in to post a response.