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
Script Help Make Grunt Break Door In One Hit.
heyitsrobert97 Offline
Member

Posts: 68
Threads: 29
Joined: Jan 2012
Reputation: 0
#1
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?

This Darn House! , Four Doors, Youtube
07-08-2012, 09:29 AM
Find
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#2
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
Find
Mackiiboy Offline
Member

Posts: 101
Threads: 7
Joined: Jan 2012
Reputation: 11
#3
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
Website Find




Users browsing this thread: 1 Guest(s)