Types/LineTriggerItem

From Official Factorio Wiki
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"}
    }
  }
}