Frictional Games Forum (read-only)
[SCRIPT] Make Grunt Break Door In One Hit. - 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: [SCRIPT] Make Grunt Break Door In One Hit. (/thread-16826.html)



Make Grunt Break Door In One Hit. - heyitsrobert97 - 07-08-2012

Hi, is there a script so that i can make the monster hit the door and break it in one hit? and how can i make him run to the pathnode behind the door?
so basically, i want him to run to the pathnode but the door is in the way so i want him to run hit it and break it in one hit. any help?


RE: Make Grunt Break Door In One Hit. - Kreekakon - 07-08-2012

This should be useful:

SetPropHealth("doornamehere", 1);

^Speaks for itself really. It will make your door's health instantly drop to one which will make it die in one hit from the grunt.


RE: Make Grunt Break Door In One Hit. - Mackiiboy - 07-08-2012

You could make a new grunt monster in the HPL Model Editor that can break a door in one hit. It's easy and takes just some minutes.

1) Open servant_grunt.ent in the model editor
2) Press settings -> user defined variables
3) Scroll down till' your find BreakDoorAttackDamage, change the values to 100 / 100
4) Save it as a new entity, maybe servant_grunt_breakdooronehit.ent
5) Use your new grunt in your map

I have not tried this, but I think it should work :]