Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Kontra Kommando

Actors Reacting to Specific Types of Damage

Recommended Posts

How would I go about making actors react to a specific type of damage? For example, an actor is hit with a projectile that has fire damage; I want it to goto a custom state. How do I write the code for the game to know that fire damage will bring it to that custom state?

EDIT: Sorry, I meant for this to be in the Doom Edit forum.

Share this post


Link to post

I assume ZDoom here. With 'react', do you mean the pain state?
If so, just use 'pain.fire'. You also may want to set a damage type specific pain chance for the damage type you want to handle.

Share this post


Link to post

Put "DamageType Fire" in the projectile's script (Same place you'd put things like "Speed 36" or whatever).

And then make a state called "pain.fire" in the monster.

The same technique can be used for deaths, just put in a "death.fire".

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×