Skip to content
lsl.devlsl.devLSL Dev

Constants in the DamageType enum.

All constant groups

At a glance, from the LSL definitions
integer DAMAGE_TYPE_ACID = 1;  // Damage caused by a caustic substance, such as acid.integer DAMAGE_TYPE_BLUDGEONING = 2;  // Damage caused by a blunt object, such as a club.integer DAMAGE_TYPE_COLD = 3;  // Damage inflicted by exposure to extreme cold.integer DAMAGE_TYPE_ELECTRIC = 4;  // Damage caused by electricity.integer DAMAGE_TYPE_EMOTIONAL = 14;integer DAMAGE_TYPE_FIRE = 5;  // Damage inflicted by exposure to heat or flames.integer DAMAGE_TYPE_FORCE = 6;  // Damage inflicted by a great force or impact (Vertical Sim / SLMC).integer DAMAGE_TYPE_GENERIC = 0;  // Generic or legacy damage.integer DAMAGE_TYPE_IMPACT = -1;  // System damage generated by impact with land, terrain, or a prim.integer DAMAGE_TYPE_NECROTIC = 7;  // Damage caused by a direct assault on the life-force.integer DAMAGE_TYPE_PIERCING = 8;  // Damage caused by a piercing object such as a bullet, spear, or arrow (Vertical Sim / SLMC).integer DAMAGE_TYPE_POISON = 9;  // Damage caused by poison.integer DAMAGE_TYPE_PSYCHIC = 10;  // Damage caused by a direct assault on the mind.integer DAMAGE_TYPE_RADIANT = 11;  // Damage caused by radiation or extreme light.integer DAMAGE_TYPE_SLASHING = 12;  // Damage caused by a slashing object such as a sword or axe.integer DAMAGE_TYPE_SONIC = 13;  // Damage caused by loud noises, like a Crash Worship concert.

Constants

ConstantTypeValueDescription
DAMAGE_TYPE_ACIDinteger1Damage caused by a caustic substance, such as acid.
DAMAGE_TYPE_BLUDGEONINGinteger2Damage caused by a blunt object, such as a club.
DAMAGE_TYPE_COLDinteger3Damage inflicted by exposure to extreme cold.
DAMAGE_TYPE_ELECTRICinteger4Damage caused by electricity.
DAMAGE_TYPE_EMOTIONALinteger14
DAMAGE_TYPE_FIREinteger5Damage inflicted by exposure to heat or flames.
DAMAGE_TYPE_FORCEinteger6Damage inflicted by a great force or impact (Vertical Sim / SLMC).
DAMAGE_TYPE_GENERICinteger0Generic or legacy damage.
DAMAGE_TYPE_IMPACTinteger-1System damage generated by impact with land, terrain, or a prim.
DAMAGE_TYPE_NECROTICinteger7Damage caused by a direct assault on the life-force.
DAMAGE_TYPE_PIERCINGinteger8Damage caused by a piercing object such as a bullet, spear, or arrow (Vertical Sim / SLMC).
DAMAGE_TYPE_POISONinteger9Damage caused by poison.
DAMAGE_TYPE_PSYCHICinteger10Damage caused by a direct assault on the mind.
DAMAGE_TYPE_RADIANTinteger11Damage caused by radiation or extreme light.
DAMAGE_TYPE_SLASHINGinteger12Damage caused by a slashing object such as a sword or axe.
DAMAGE_TYPE_SONICinteger13Damage caused by loud noises, like a Crash Worship concert.

Used by