Types/LineTriggerItem

From Official Factorio Wiki
Revision as of 14:16, 26 March 2021 by Bilka (talk | contribs) (1.1: Renamed "source_effects" property of line trigger item to "range_effects", due to ambiguity with source_effects on action delivery; added example)
Jump to navigation Jump to search

Extends Types/TriggerItem.

Mandatory properties

Inherits all properties from Types/TriggerItem.

range

Type: Types/double

width

Type: Types/double

Optional properties

range_effects

Type: Types/TriggerEffect

Example

action =
{
  type = "line",
  range = 25,
  width = 0.5,

  range_effects =
  {
    type = "create-explosion",
    entity_name = "railgun-beam"
  },

  action_delivery =
  {
    type = "instant",
    target_effects =
    {
      type = "damage",
      damage = { amount = 100, type = "physical"}
    }
  }
}