Frictional Games Forum (read-only)
Stop Enemy Regaining Health? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Stop Enemy Regaining Health? (/thread-23901.html)



Stop Enemy Regaining Health? - Romulator - 11-20-2013

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.


RE: Stop Enemy Regaining Health? - daortir - 11-20-2013

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 : )


RE: Stop Enemy Regaining Health? - Fatalist - 11-20-2013

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

https://www.dropbox.com/s/6i8nzlarynljuqe/infected_dead.avi


RE: Stop Enemy Regaining Health? - Romulator - 11-21-2013

(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/6i8nzlarynljuqe/infected_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