Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# DamageEntityTriggerEffectItem - Prototype Docs

## DamageEntityTriggerEffectItem :: struct

Inherits from TriggerEffectItem

## Properties

- default
- sorted

type | :: `"damage"` |
damage | :: DamageParameters |
apply_damage_to_trees optional | :: boolean |
vaporize optional | :: boolean | If `true`, no corpse for killed entities will be created.
If `true`, no corpse for killed entities will be created.
use_substitute optional | :: boolean |
lower_distance_threshold optional | :: uint16 |
upper_distance_threshold optional | :: uint16 |
lower_damage_modifier optional | :: float |
upper_damage_modifier optional | :: float |

Inherited from TriggerEffectItem

repeat_count optional | :: uint16 |
repeat_count_deviation optional | :: uint16 |
probability optional | :: float | Must be greater than `0` and less than or equal to `1`.
Must be greater than `0` and less than or equal to `1`.
affects_target optional | :: boolean |
show_in_tooltip optional | :: boolean |
damage_type_filters optional | :: DamageTypeFilters | Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. [...]
Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. [...]

damage | :: DamageParameters |
type | :: `"damage"` |
apply_damage_to_trees optional | :: boolean |
lower_damage_modifier optional | :: float |
lower_distance_threshold optional | :: uint16 |
upper_damage_modifier optional | :: float |
upper_distance_threshold optional | :: uint16 |
use_substitute optional | :: boolean |
vaporize optional | :: boolean | If `true`, no corpse for killed entities will be created.
If `true`, no corpse for killed entities will be created.

Inherited from TriggerEffectItem

affects_target optional | :: boolean |
damage_type_filters optional | :: DamageTypeFilters | Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. [...]
Guaranteed to work with EntityWithHealthPrototype::damaged_trigger_effect and EntityWithHealthPrototype::dying_trigger_effect. [...]
probability optional | :: float | Must be greater than `0` and less than or equal to `1`.
Must be greater than `0` and less than or equal to `1`.
repeat_count optional | :: uint16 |
repeat_count_deviation optional | :: uint16 |
show_in_tooltip optional | :: boolean |

## Properties

### type :: `"damage"`

### damage :: DamageParameters

### apply_damage_to_trees :: boolean optional

Default: `true`

### vaporize :: boolean optional

Default: `false`

If `true`, no corpse for killed entities will be created.

### use_substitute :: boolean optional

Default: `true`

### lower_distance_threshold :: uint16 optional

Default: MAX_UINT16

### upper_distance_threshold :: uint16 optional

Default: MAX_UINT16

### lower_damage_modifier :: float optional

Default: `1`

### upper_damage_modifier :: float optional

Default: `1`

Type used in

- TriggerEffect