heyitsrobert97
Member
Posts: 68
Threads: 29
Joined: Jan 2012
Reputation:
0
|
Make Grunt Break Door In One Hit.
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?
|
|
07-08-2012, 09:29 AM |
|
Kreekakon
Pick a god and pray!
Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation:
124
|
RE: Make Grunt Break Door In One Hit.
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.
|
|
07-08-2012, 10:11 AM |
|
Mackiiboy
Member
Posts: 101
Threads: 7
Joined: Jan 2012
Reputation:
11
|
RE: Make Grunt Break Door In One Hit.
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 :]
|
|
07-08-2012, 11:32 AM |
|