Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making an enemy follow you but not kill you?
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#1
Making an enemy follow you but not kill you?

Is there a way you can make the grunt follow you? And take away the script (if any) for it killing you?

10-20-2011, 10:42 AM
Find
Brute Offline
Member

Posts: 197
Threads: 10
Joined: Aug 2011
Reputation: 3
#2
RE: Making an enemy follow you but not kill you?

Use this:
ShowEnemyPlayerPosition("NAMEOFTHEMONSTERHERE");

So the enemy should known your position and will hunt you!

But when you mean, just follow you without hunting, I haven't an idea. Sorry Sad
Sleep tight!





(This post was last modified: 10-20-2011, 10:55 AM by Brute.)
10-20-2011, 10:51 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#3
RE: Making an enemy follow you but not kill you?

(10-20-2011, 10:51 AM)Brute Wrote: Use this:
ShowEnemyPlayerPosition("NAMEOFTHEMONSTERHERE");

So the enemy should known your position and will hunt you!

But when you mean, just follow you without hunting, I haven't an idea. Sorry Sad
Sleep tight!
Dw i figured it out, just fiddled with the model setting Big Grin , it's bloody scary, him just following you were ever you go Sad

(This post was last modified: 10-20-2011, 11:02 AM by flamez3.)
10-20-2011, 11:01 AM
Find
Brute Offline
Member

Posts: 197
Threads: 10
Joined: Aug 2011
Reputation: 3
#4
RE: Making an enemy follow you but not kill you?

Great, that you have manage it. A good feeling, isn't it? Smile
I think that is also the only way to make some NCP's, which can follow you by your journey... I think I got some ideas... Big Grin





10-20-2011, 11:07 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#5
RE: Making an enemy follow you but not kill you?

(10-20-2011, 11:07 AM)Brute Wrote: Great, that you have manage it. A good feeling, isn't it? Smile
I think that is also the only way to make some NCP's, which can follow you by your journey... I think I got some ideas... Big Grin
.....You don't want them to follow you by your journey, it is sooooooo frightening, every time you stop; they run right inside of you and you look back and hes all like..... "o.0".... It's scary. Im planning on using it for my custom, just tryng to get the right moment when to introduce him Smile

10-20-2011, 11:31 AM
Find
Brute Offline
Member

Posts: 197
Threads: 10
Joined: Aug 2011
Reputation: 3
#6
RE: Making an enemy follow you but not kill you?

Why not? For example the Brute... Big Grin
An awesome bodyguard, i think! Smile





10-20-2011, 11:53 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#7
RE: Making an enemy follow you but not kill you?

(10-20-2011, 11:53 AM)Brute Wrote: Why not? For example the Brute... Big Grin
An awesome bodyguard, i think! Smile
Not so much a bodyguard, more like..... something that focuses on you all the time, gets you stuck in places, and is incredibly fast. I can only make it so he wont attack you. It would be really awesome if someone could figure out how to make it so he would attack other enemies Big Grin

10-20-2011, 12:07 PM
Find
xiphirx Offline
Senior Member

Posts: 662
Threads: 16
Joined: Nov 2010
Reputation: 5
#8
RE: Making an enemy follow you but not kill you?

If the grunt is constantly running inside of you, then you might want to try disabling the entity and re-enabling it over and over each frame (dirty trick, but it works).

10-20-2011, 06:05 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#9
RE: Making an enemy follow you but not kill you?

Not really inside of you, but when you walk, he walks even ffaster than you and it can sometimes lead to clipping into your screen, not much of a problem, but scary

10-21-2011, 06:10 AM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#10
RE: Making an enemy follow you but not kill you?

Do you want the monster to actively follow the player around like a companion? Or do you want it to patrol the general area the player is in?

If the prior is true, you can probably do this by changing the grunt's vision ranges to 0, as well as its auto-hunt range to 0. Maybe that will let it follow the player without attacking because A) the grunt will hear and follow the player's footsteps and B) the player can't see the player so it doesn't hunt, and since auto-hunt is 0 (hopefully disabled) it won't attack.

If the latter is what you want, you'll need to implement some specific functions which control and tell the monster where to go. You can use collide callbacks to do so. Research a little bit, there are plenty of tutorials out there (I myself have written one) which give you some good insight on how to control monsters.

10-21-2011, 07:37 AM
Find




Users browsing this thread: 1 Guest(s)