Page 1 of 1

How do I make my forcefield instakill player?

Posted: Sun Jan 24, 2021 9:38 pm
by gunrock
Im using the forcefield decorate I took from Realm667 website. How can I make this forcefield kill the player instantlly when it is active? Then disable when its been turned off?
Here is the script code that I have so far.

Spoiler:

Re: How do I make my forcefield instakill player?

Posted: Sun Jan 24, 2021 11:00 pm
by Misery
Well, I made an insta-kill forcefield this way. First, I set the linedef with tag of 1 and a Thing_Damage special (Action Special 73) that deals 10,000 damage. Then I made a switch that uses the following code.

Code: Select all

script 1 (void)

{
	SetLineSpecial (1, "", 0);
}
Will that work for your purposes?

Re: How do I make my forcefield instakill player?

Posted: Mon Jan 25, 2021 4:25 am
by Enjay
Misery wrote:Thing_Damage special (Action Special 73) that deals 10,000 damage.
Minor clarification:

[wiki]DamageThing[/wiki] is action special 73. [wiki]Thing_Damage[/wiki] is action special 119.

In this case I think that DamageThing would be the best one to use because it doesn't take a thing tag as an argument and setting damage to 0 guarantees a kill.

Re: How do I make my forcefield instakill player?

Posted: Mon Jan 25, 2021 5:44 am
by Misery
[Deleted]

Re: How do I make my forcefield instakill player?

Posted: Mon Jan 25, 2021 11:56 am
by gunrock
Thanks as always!!