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
Stop Enemy Regaining Health?
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#1
Stop Enemy Regaining Health?

Pretty sure this has been answered before, but the amount of results you get for typing in enemy... Tongue

Basically, is there a way to stop the enemy health from reverting back to 100 after it takes damage? Or if I wanted to say, attack with a chair or something, I would have to set the Health to 0 only in order for the enemy to "die" because anything higher may cause it to go back to 100.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
11-20-2013, 01:07 PM
Find
daortir Offline
Senior Member

Posts: 422
Threads: 9
Joined: Sep 2013
Reputation: 18
#2
RE: Stop Enemy Regaining Health?

Add a Local variable that increses with each hit, when it reaches let's say 5 hits you make the enemy despawn. I thought about making killable enemies, and it looked like the best way to do it to me.


Though you might wanna wait for the answers of more experienced modders : )

11-20-2013, 02:51 PM
Find
Fatalist Offline
Member

Posts: 122
Threads: 8
Joined: Dec 2012
Reputation: 8
#3
RE: Stop Enemy Regaining Health?

1.Change health regen in model Editor.
2. Add a dead animation.
3. Finish him!

https://www.dropbox.com/s/6i8nzlarynljuq...d_dead.avi

11-20-2013, 05:32 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#4
RE: Stop Enemy Regaining Health?

(11-20-2013, 02:51 PM)daortir Wrote: Add a Local variable that increses with each hit, when it reaches let's say 5 hits you make the enemy despawn. I thought about making killable enemies, and it looked like the best way to do it to me.





Though you might wanna wait for the answers of more experienced modders : )
I know that I can "sort of" make a death animation just by using the servant grunt ragdoll and possibly giving it some force. Now that you can script an entity to go to another entity, some good ol' make enemy inactive and spawn ragdoll will do some stuff there :3 Thanks!

(11-20-2013, 05:32 PM)Fatalist Wrote: 1.Change health regen in model Editor.

2. Add a dead animation.

3. Finish him!



https://www.dropbox.com/s/6i8nzlarynljuq...d_dead.avi
Oh thank god. Sick of looking at those thing's crotches. Having a box to throw at those would be pretty handy. Regardless, I'll have a look at this option as well! Thanks you two! +rep to both

Discord: Romulator#0001
[Image: 3f6f01a904.png]
11-21-2013, 12:09 PM
Find




Users browsing this thread: 1 Guest(s)