A_SetDamageType

From ZDoom Wiki
Jump to navigation Jump to search

A_SetDamageType(name damagetype)


Sets the specified damage type for the caller. This accepts the already-defined damage types supported by the engine as well as user-defined ones.

Examples

This rocket will do two types of damage: Direct hit causes default non-elemental damage, but the explosion itself causes fire damage.

ACTOR RocketElement : Rocket
{
    States
    {
    Death:
        MISL B 0 Bright A_SetDamageType("Fire")
        MISL B 8 Bright A_Explode
        MISL C 6 Bright
        MISL D 4 Bright
        Stop
    }
}