Types/TriggerItem: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (Protected "Types/TriggerItem": Migrated prototype doc to separate website ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(Removed old prototype docs)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/TriggerItem.html https://lua-api.factorio.com/latest/types/TriggerItem.html]
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/TriggerItem.html https://lua-api.factorio.com/latest/types/TriggerItem.html]


This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
 
 
 
The abstract base for all trigger items loaded by [[Types/Trigger]].
 
== Extensions ==
* [[Types/DirectTriggerItem]]
* [[Types/AreaTriggerItem]]
* [[Types/LineTriggerItem]]
* [[Types/ClusterTriggerItem]]
 
== Optional properties ==
 
=== entity_flags ===
'''Type''': [[Types/EntityPrototypeFlags]]
 
'''Default''': All flags
 
Only prototypes with these flags are affected by the trigger item.
 
=== ignore_collision_condition ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== trigger_target_mask ===
'''Type''': [[Types/TriggerTargetMask]]
 
'''Default''': everything
 
=== repeat_count ===
'''Type''': [[Types/uint32]]
 
'''Default''': 1
 
=== probability ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
Must be greater than 0 and less than or equal to 1.
 
=== collision_mask ===
'''Type''': [[Types/CollisionMask]]
 
'''Default''': All masks
 
Only prototypes with these collision masks are affected by the trigger item.
 
=== action_delivery ===
'''Type''': [[Types/TriggerDelivery]] or [[Types/table]] of [[Types/TriggerDelivery]]
 
=== force ===
'''Type''': [[Types/ForceCondition]]
 
'''Default''': All forces
 
Only entities meeting the force condition are affected by the trigger item.

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/TriggerItem.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.