Inherits from TriggerItem |
type |
:: "line"
|
|
range | :: double |
|
width | :: double |
|
range_effects optional | :: TriggerEffect |
|
entity_flags optional | :: EntityPrototypeFlags |
Only prototypes with these flags are affected by the trigger item. |
Only prototypes with these flags are affected by the trigger item. |
||
ignore_collision_condition optional | :: bool |
|
trigger_target_mask optional | :: TriggerTargetMask |
|
repeat_count optional | :: uint32 |
|
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. |
||
collision_mask optional | :: CollisionMask |
Only prototypes with these collision masks are affected by the trigger item. |
Only prototypes with these collision masks are affected by the trigger item. |
||
action_delivery optional | :: TriggerDelivery or array[TriggerDelivery] |
|
force optional | :: ForceCondition |
Only entities meeting the force condition are affected by the trigger item. |
Only entities meeting the force condition are affected by the trigger item. |
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"}
}
}
}