I am working on a single player map at the moment and having trouble getting my npc to do something specific.
I am using rally points and whatnot and don't want to know all that
I just want to be able to make npc move to assault point without firing and AFTER moving to assault point just
stand still for a specific amout of time say 60sec before attacking me
even while they see me.
Basically I want them to stand still and look at me until the end of my
mp3 that I set to play and as soon as it ends start attacking me.
If there is another way I have to do this I would like to know that too.
Thanx for the help - I can't move on until I figure this out
1
Re: I want my npc to do something specific
Posted by French Toast on Mon Jan 31st at 1:01pm 2005

French Toast
member
3043 posts
300 snarkmarks
Registered: Jan 16th 2005
Location: Canada
Occupation: Kicking Ass
Posted by French Toast on Mon Jan 31st at 1:01pm 2005
I don't know anything about npc's but try some input/output things
[addsig]
French Toast
member
3043 posts
300 snarkmarks
Registered: Jan 16th 2005
Location: Canada

Occupation: Kicking Ass
Re: I want my npc to do something specific
Posted by AlphaMRE on Mon Jan 31st at 5:18pm 2005
Posted by AlphaMRE on Mon Jan 31st at 5:18pm 2005
I have tried to use different input/outputs but cannot seem to find the right combination. ugh
Re: I want my npc to do something specific
Posted by omegaslayer on Mon Jan 31st at 6:59pm 2005

omegaslayer
member
2481 posts
401 snarkmarks
Registered: Jan 16th 2004
Location: Seattle, WA
Occupation: Sr. DevOPS Engineer
Posted by omegaslayer on Mon Jan 31st at 6:59pm 2005
Path ents, at the path ent you want it to stop at, have an output saying that on pass wait here for X ammount of seconds.
[addsig]
omegaslayer
member
2481 posts
401 snarkmarks
Registered: Jan 16th 2004
Location: Seattle, WA

Occupation: Sr. DevOPS Engineer
Re: I want my npc to do something specific
Posted by AlphaMRE on Mon Jan 31st at 7:29pm 2005
Posted by AlphaMRE on Mon Jan 31st at 7:29pm 2005
Thanx for the suggestion slayer but it seems to still do the same
thing. As soon as I am in view of the enemy they start assaulting
even before they get to the path ent or assault point.
In the class info of the path ent there is a wait this amount of secs, but that didn't work.
I would make an output that said onpass but then I couldn't find a wait here to add to the ouput - dunno if that makes sence
Basically output = onpass - marine1 - ? no wait here
Also are you saying to just use path ent or in combination with rally points and stuff.
I have 5 combine that I want to go to a postiton w/o assaulting me on the way to the position while they see me and wait there for a set amount of time.
Also I am using a trigger to set it all in motion so that when I enter the room they go to position
In the class info of the path ent there is a wait this amount of secs, but that didn't work.
I would make an output that said onpass but then I couldn't find a wait here to add to the ouput - dunno if that makes sence
Basically output = onpass - marine1 - ? no wait here
Also are you saying to just use path ent or in combination with rally points and stuff.
I have 5 combine that I want to go to a postiton w/o assaulting me on the way to the position while they see me and wait there for a set amount of time.
Also I am using a trigger to set it all in motion so that when I enter the room they go to position
Re: I want my npc to do something specific
Posted by omegaslayer on Mon Jan 31st at 8:39pm 2005

omegaslayer
member
2481 posts
401 snarkmarks
Registered: Jan 16th 2004
Location: Seattle, WA
Occupation: Sr. DevOPS Engineer
Posted by omegaslayer on Mon Jan 31st at 8:39pm 2005
Try a scriped sequece, this way it overides the AI and they will walk
there and then you can trigger another one from where you want them to
stop.
[addsig]
[addsig]
omegaslayer
member
2481 posts
401 snarkmarks
Registered: Jan 16th 2004
Location: Seattle, WA

Occupation: Sr. DevOPS Engineer
Re: I want my npc to do something specific
Posted by Guessmyname on Sun Feb 13th at 10:29pm 2005
Posted by Guessmyname on Sun Feb 13th at 10:29pm 2005
It could be done with an ai_relationship I suppose
[addsig]
[addsig]
Re: I want my npc to do something specific
Posted by Horned King on Wed Feb 16th at 1:59am 2005
Posted by Horned King on Wed Feb 16th at 1:59am 2005
Ok, heres what you do:
Make your npc named jimbob, and check the "LooK Off" flag, also make the npc asleep, waiting on input
Then make a scripted_sequence entity, have it call Jimbob, and set the "move to" field to run, walk, or whatever you want. Put in an idle animation for the action animation field. Then add an output to the scripted_sequence for "on script" (or something like that) targeting Jimbob, with a delay of 60, Look On
Then make a trigger to activate your scripted_sequence, and wake Jimbob. This will cause him to suddenly appear, run over to the scripted_sequence's location and stand there for 60 seconds, then he will see you (if pointed in the right direction) and attack (if an enemy).
Hope that helps,
HK
Horned King
member
11 posts
11 snarkmarks
Registered: Jan 27th 2005
Location: USA
Occupation: Shift Supervisor
member
11 posts
11 snarkmarks
Registered: Jan 27th 2005
Location: USA

Occupation: Shift Supervisor
Re: I want my npc to do something specific
Posted by AlphaMRE on Wed Feb 16th at 4:04am 2005
Thanx for the input king and omega, I figured the first part of it out and now I can finish it up with your message.
MRE
Posted by AlphaMRE on Wed Feb 16th at 4:04am 2005
Thanx for the input king and omega, I figured the first part of it out and now I can finish it up with your message.
MRE
1
© Snarkpit.net 2001 - 2023, about us, donate, contact
Snarkpit v6.1.0 created this page in 0.0234 seconds.

Snarkpit v6.1.0 created this page in 0.0234 seconds.

