Jump to content
  • 0

How to make a wall texture cause damage to the player when they are touching it?


Johnny_Vicc_007

Question

Hello everyone! I wanted to know if it's possible to make a wall texture cause damage to the player upon touching it in GZDoom Builder. In my case, the texture I want to inflict damage with is a wall texture of earth with thorny vines. Is it possible to achieve this through texture properties or by using an ACS script? If an ACS script is needed, could you recommend a ready-made script that could work with the texture? Just to clarify, I want the texture to inflict a minimum of 5 damage to the player.

 

1850213069_Capturadetela2024-04-13221825.png.6763b8f7b84f59980c1f717617ab0f89.png

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 1

The easiest way is to place a damaging sector in front of the linedef

 

u70n4yc.png

 

edit for reference:

this method damages continuously while on this sector

while the acs script will damage once when the linedef is bumped

 

Edited by Kappes Buur

Share this post


Link to post
  • 1

I think this should work too :)

#include "zcommon.acs"

script "Damage Player" (void)

{
	DamageThing(5,0);//Damage the activator of the script by 5
	Delay(35);//Wait a second
}

 

On the lines you wish to hurt the player use Action 80 Script Execute and set the activation to repeatable / When player bumps. :)

Edited by JaySmithen
Removed an image

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...