NPC Help
#2

so what you want =

a npc that shoot you
and also can be shot.

well i worked on npc's like that and making an npc shoot at a player would become very bugged and almost impossible to make it work perfectly.
However an npc that hits a player with a sword or knife or fists or whatever is a bit easyer.
-you will need a timer that checks players around the npc
-you need to record every hit the npc would make with his weapon (from front, left ,right and behind him)
(this is the part where the recordings could be bugged rom the attacking npc fs)
- i might be forgetting something but this is the basic somehow i guess

Now for the npc that is beging hit by you as a player;

-you need the npc to check if the player is shooting (for example:with key fire and aim)
-then you need to find a nice anim for it
- health system is very difficult you might be able to check how many times a player hits the npc and then make it die after 5 hits or something.

this is what you need to make this work and even IF it works it wouldnt be that perfect.
besides this might be to difficult for you to script (yet) i suggest you learn about using timers and checking if any players are near you as a player if you realy realy realy want to learn this.

Good Luck
Reply


Messages In This Thread
NPC Help - by Simunovic - 28.08.2010, 14:18
Re: NPC Help - by boelie - 28.08.2010, 19:07
Re: NPC Help - by Simunovic - 29.08.2010, 09:15
Re: NPC Help - by Claude - 29.08.2010, 09:19
Re: NPC Help - by Simunovic - 29.08.2010, 20:44

Forum Jump:


Users browsing this thread: 2 Guest(s)