Types/CreateEntityTriggerEffectItem: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "Extends Types/TriggerEffectItem. == Mandatory properties == Inherits all properties from Types/TriggerEffectItem. === entity_name === '''Type''': Types/string N...")
 
(ignoring collision is a side effect of smoke entities not being allowed to have a collision box)
 
(4 intermediate revisions by 2 users not shown)
Line 30: Line 30:


'''Default''': false
'''Default''': false
=== tile_collision_mask ===
'''Type''': [[Types/CollisionMask]]
'''Default''': no collision
Entity creation will not occur if a tile matches the collision condition.


=== offsets ===
=== offsets ===
'''Type''': [[Types/table]] of [[Types/vector]]
'''Type''': [[Types/table]] of [[Types/vector]]
If multiple offsets are specified, multiple entities are created. The projectile of [[Distractor capsule]] uses this property to spawn three Distractors.

Latest revision as of 11:19, 16 January 2023

Extends Types/TriggerEffectItem.

Mandatory properties

Inherits all properties from Types/TriggerEffectItem.

entity_name

Type: Types/string

Name of the entity that should be created.

Optional properties

offset_deviation

Type: Types/BoundingBox

trigger_created_entity

Type: Types/bool

Default: false

If this is true, on_trigger_created_entity is raised when the entity is created.

check_buildability

Type: Types/bool

Default: false

show_in_tooltip

Type: Types/bool

Default: false

tile_collision_mask

Type: Types/CollisionMask

Default: no collision

Entity creation will not occur if a tile matches the collision condition.

offsets

Type: Types/table of Types/vector

If multiple offsets are specified, multiple entities are created. The projectile of Distractor capsule uses this property to spawn three Distractors.