KIlling players from entity output
Quote from Patches34 on September 2, 2012, 9:51 pmI am working on a new coop map and I want to kill both players when a relay is triggered. I am using "player" as the target and "Kill" as the input, but nothing happens. When I enable the dev log both bots get the Kill input i get the following.
- Code: Select all
(9.93) input blue: prop_button.Use()
(10.00) output: (prop_button,) -> (player,Kill)()
(10.00) input : blue.Kill()
(10.00) input : red.Kill()I am using a button because it takes awhile to trigger the relay.
Placing a trigger_hurt around the map is not an option for my map.
I am working on a new coop map and I want to kill both players when a relay is triggered. I am using "player" as the target and "Kill" as the input, but nothing happens. When I enable the dev log both bots get the Kill input i get the following.
- Code: Select all
(9.93) input blue: prop_button.Use()
(10.00) output: (prop_button,) -> (player,Kill)()
(10.00) input : blue.Kill()
(10.00) input : red.Kill()
I am using a button because it takes awhile to trigger the relay.
Placing a trigger_hurt around the map is not an option for my map.
Quote from FelixGriffin on September 2, 2012, 10:20 pment_fire @servercommand Command kill
ent_fire @servercommand Command kill
Quote from Skotty on September 2, 2012, 10:49 pmNEVER use the input "kill" on players. It removes them, not just kills them. The console command "kilL" does just kill them.
What about a normal trigger_hurt you do activate for 1 second everywhere on the map?
NEVER use the input "kill" on players. It removes them, not just kills them. The console command "kilL" does just kill them.
What about a normal trigger_hurt you do activate for 1 second everywhere on the map?
Quote from narsqrd on September 3, 2012, 12:33 amYou could parent a trigger_hurt to the player from the map's start, then activate as necessary
You could parent a trigger_hurt to the player from the map's start, then activate as necessary
Quote from Patches34 on September 3, 2012, 8:25 amFelixGriffin wrote:ent_fire @servercommand Command killI tried calling this console command but I got an unhandled input. Could you please expand what you mean.
I'm still trying to stay away from a trigger_hurt. I got to wait to test with another player but I'm trying to see of using a point_clientcommand will work. It works for killing the bot I'm controlling at the time, but no idea if it will fire on both player's console.
I tried calling this console command but I got an unhandled input. Could you please expand what you mean.
I'm still trying to stay away from a trigger_hurt. I got to wait to test with another player but I'm trying to see of using a point_clientcommand will work. It works for killing the bot I'm controlling at the time, but no idea if it will fire on both player's console.
Quote from FelixGriffin on September 3, 2012, 8:45 amYou need a point_servercommand to affect everyone on the server. Send it the input "Command" with the parameter "kill".
You need a point_servercommand to affect everyone on the server. Send it the input "Command" with the parameter "kill".
Quote from Patches34 on September 4, 2012, 8:12 amSo call the Command Kill worked when I ran the game spiltscreen for one bot. However when I ran the game from the workshop it did nothing, and I forgot to show the dev logs(I'll add them later).
I think I'm just gonna have to use a large trigger_hurt to do this.
So call the Command Kill worked when I ran the game spiltscreen for one bot. However when I ran the game from the workshop it did nothing, and I forgot to show the dev logs(I'll add them later).
I think I'm just gonna have to use a large trigger_hurt to do this.
Quote from FelixGriffin on September 4, 2012, 5:24 pmYou're sure you placed a servercommand in the level?
Maybe kill is considered a cheat. show_time_hud 0; sv_cheats 1; kill; sv_cheats 0 should do it.
You're sure you placed a servercommand in the level?
Maybe kill is considered a cheat. show_time_hud 0; sv_cheats 1; kill; sv_cheats 0 should do it.
Quote from FelixGriffin on September 4, 2012, 5:38 pmThat's weird. I wonder what it could possibly help you accomplish? :S
That's weird. I wonder what it could possibly help you accomplish? :S