Trgger hurt

Avatar
Haggis
158 Posts
Posted Sep 14, 2011
Is there another way to kill the player except for trigger hurt brush. I have a timer set up that when it goes to zero you die, can you set up something else to kill the player.
Advertisement
Registered users don’t see ads! Register now!
Avatar
Vordwann
767 Posts
Posted Sep 14, 2011
Replied 1 hour later
If there is a console command that kills you, you could use a point_clientcommand.
Avatar
dinnesch
105 Posts
Posted Sep 14, 2011
Replied 5 minutes later
You can access the player as 'player' in the output of an entity(Hammer shows it in red because of a bug, but it'll work ingame), and kill him using 'SetHealth' with a parameter override of -1000. An example of a button that will kill the player 3 seconds after being pressed:
img
Avatar
Skotty
671 Posts
Posted Sep 14, 2011
Replied 2 hours later
You could also use !activator instead of player.
Avatar
Hzamd
61 Posts
Posted Sep 14, 2011
Replied 2 hours later

Vordwann wrote:
If there is a console command that kills you, you could use a point_clientcommand.

wait, I'm interresed this thing make the console do a command ??
Such as Noclip or no target ????

Avatar
CaretCaret
290 Posts
Posted Sep 14, 2011
Replied 15 minutes later
Yes
Avatar
Hzamd
61 Posts
Posted Sep 14, 2011
Replied 2 hours later
Cool !!!!
I'll use it
Advertisement
Registered users don’t see ads! Register now!
Avatar
Haggis
158 Posts
Posted Sep 14, 2011
Replied 3 hours later

dinnesch wrote:
You can access the player as 'player' in the output of an entity(Hammer shows it in red because of a bug, but it'll work ingame), and kill him using 'SetHealth' with a parameter override of -1000. An example of a button that will kill the player 3 seconds after being pressed:

Thhankyou Dinnesch, this has worked exactly like i wanted it to.