Please or Register to create posts and topics.

KIlling players from entity output

Page 1 of 2Next

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.

ent_fire @servercommand Command kill

Falsi sumus crusto!

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?

You could parent a trigger_hurt to the player from the map's start, then activate as necessary

FelixGriffin wrote:
ent_fire @servercommand Command kill

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.

You need a point_servercommand to affect everyone on the server. Send it the input "Command" with the parameter "kill".

Falsi sumus crusto!

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.

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.

Falsi sumus crusto!

Kill is a cheat since DLC 1 or 2, before it wasn't.

That's weird. I wonder what it could possibly help you accomplish? :S

Falsi sumus crusto!
Page 1 of 2Next