Frictional Games Forum (read-only)

Full Version: Stop Enemy Regaining Health?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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 : )
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, 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