Re: I want my npc to do something specific
Posted by AlphaMRE on
Mon Jan 31st 2005 at 8:20am
13 posts
11 snarkmarks
Registered:
Jan 23rd 2005
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
Re: I want my npc to do something specific
Posted by French Toast on
Mon Jan 31st 2005 at 1:01pm
3043 posts
304 snarkmarks
Registered:
Jan 16th 2005
Occupation: Kicking Ass
Location: Canada
I don't know anything about npc's but try some input/output things
Re: I want my npc to do something specific
Posted by AlphaMRE on
Mon Jan 31st 2005 at 5:18pm
13 posts
11 snarkmarks
Registered:
Jan 23rd 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 2005 at 6:59pm
2481 posts
595 snarkmarks
Registered:
Jan 16th 2004
Occupation: Sr. DevOPS Engineer
Location: Seattle, WA
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.
Re: I want my npc to do something specific
Posted by AlphaMRE on
Mon Jan 31st 2005 at 7:29pm
13 posts
11 snarkmarks
Registered:
Jan 23rd 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
Re: I want my npc to do something specific
Posted by omegaslayer on
Mon Jan 31st 2005 at 8:39pm
2481 posts
595 snarkmarks
Registered:
Jan 16th 2004
Occupation: Sr. DevOPS Engineer
Location: Seattle, WA
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.
Re: I want my npc to do something specific
Posted by Guessmyname on
Sun Feb 13th 2005 at 10:29pm
Posted
2005-02-13 10:29pm
342 posts
173 snarkmarks
Registered:
Dec 6th 2004
It could be done with an ai_relationship I suppose
Re: I want my npc to do something specific
Posted by Horned King on
Wed Feb 16th 2005 at 1:59am
11 posts
11 snarkmarks
Registered:
Jan 27th 2005
Occupation: Shift Supervisor
Location: USA
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
Re: I want my npc to do something specific
Posted by AlphaMRE on
Wed Feb 16th 2005 at 4:04am
13 posts
11 snarkmarks
Registered:
Jan 23rd 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