Aim at "npc" Created 18 years ago2006-04-10 10:30:20 UTC by Madcow Madcow

Created 18 years ago2006-04-10 10:30:20 UTC by Madcow Madcow

Posted 18 years ago2006-04-10 10:30:20 UTC Post #173252
Well, I wonder if I can make an NPC draw his weaponand then aim it at a specific target (wich in this case is an info_target called "target01")
Posseble?
In that case, how?

Thanks!
Madcow MadcowSpy zappin my udder
Posted 18 years ago2006-04-10 11:07:13 UTC Post #173253
Well maybe if you trigger the NPC to use the script (animation) aim and tell him to follow targets name.

Don't ask me how cause scripted_sequences are just foreign to me.
Habboi HabboiSticky White Love Glue
Posted 18 years ago2006-04-10 11:36:29 UTC Post #173255
I don't think that's posseble, but, maybe. :S

Edit:

I just went through the entity list and found "scripted_target"
maybe that entity can become handy?
Madcow MadcowSpy zappin my udder
Posted 18 years ago2006-04-10 11:55:50 UTC Post #173259
Use the Valve Wiki to see what it does :)
Habboi HabboiSticky White Love Glue
Posted 18 years ago2006-04-10 12:29:41 UTC Post #173264
Bah, it did something else.
But there must be something you can do, right?
Madcow MadcowSpy zappin my udder
Posted 18 years ago2006-04-10 12:45:52 UTC Post #173266
Like I said...NPC's use Scripted_sequences to do animations...Aiming is a type of animation so you gotta use that...However it will just aim anywhere which is why in properties you tell it to look at the name of the target.
Habboi HabboiSticky White Love Glue
Posted 18 years ago2006-04-10 13:46:20 UTC Post #173274
That's it!
Thank you thank you thank you!

I simply do this:

I set up a NPC_metropolice, and an info_target named "target01".
I also make a scripted_sequence targeted to the npc_metropolice with some kind of an aim animation.
I then setup a scene in faceposer where you can specify where the NPC should look.
In that field, I type the info_target wich I named "target01"

You pwn habboi.
Thanks
Madcow MadcowSpy zappin my udder
Posted 18 years ago2006-04-10 15:36:57 UTC Post #173294
:) Just doing my job.
Habboi HabboiSticky White Love Glue
Posted 18 years ago2006-04-10 16:12:58 UTC Post #173316
Oh, just figgured that fac,, you got a job? Any ways, :P....
Well, face poser doesn't work I think, be cause it simply just move the head of the model.
BUT
Maybe you could run 2 scripts on the same time?
One that runs the animation, and one that aims the model?
Madcow MadcowSpy zappin my udder
Posted 18 years ago2006-04-10 16:20:22 UTC Post #173323
Surely Valve already made an aiming animation...What NPC you using? A rebel? Look through model viewer for an aiming animation...

Thats my only suggestion. Yes I have a job..Help the poor by stealing helpful info from the rich.
Habboi HabboiSticky White Love Glue
Posted 18 years ago2006-04-11 08:59:08 UTC Post #173460
I'm setting up a metrocop to aim.

I found an animation named "pistolangryidle2", and he aims straight ahead on that animation, so, If I don't find the standard aim animation, I could simply use that one.
Madcow MadcowSpy zappin my udder
Posted 18 years ago2006-04-11 09:13:10 UTC Post #173464
Goodluck :) Perhaps you could teach me to use scripts.
Habboi HabboiSticky White Love Glue
Posted 18 years ago2006-04-11 13:30:33 UTC Post #173509
Sure, I could write you a tutorial.
It aint hard at all. :)
Madcow MadcowSpy zappin my udder
You must be logged in to post a response.