So am I misunderstanding, or is the described behaviour of final_action inconsistent in ProjectilePrototype?
final_action :: Trigger optional
Executed when the projectile hits something, after action and only if the entity that was hit was destroyed. The projectile is destroyed right after the final_action.
piercing_damage :: float optional
Default: 0
Whenever an entity is hit by the projectile, this number gets reduced by the health of the entity. If the number is then below 0, the final_action is applied and the projectile destroyed. Otherwise, the projectile simply continues to its destination.
If piercing_damage > health of entity, and the projectile kills the entity, then what happens? According to piercing_damage, the projectile should continue, since remaining piercing_damage > 0. But according to final_action, "if the entity that was hit was destroyed", then final_action will trigger and the projectile gets destroyed? Is the description for final_action supposed to say "if the projectile is destroyed after hitting an entity"?
			
			
									
									
						ProjectilePrototype final_action confusion
Place to report issues and suggest improvements to the API documentation.
			Return to “Documentation Improvement Requests”
			
				Jump to
				
			
		
			
			
	
	- General
 - ↳ Releases
 - ↳ News
 - ↳ General discussion
 - ↳ Multiplayer
 - ↳ Find Servers / Tools / Guides
 - ↳ Show your Creations
 - ↳ Videos
 - ↳ Combinator Creations
 - ↳ Mechanical Throughput Magic (circuit-free)
 - ↳ Railway Setups
 - ↳ Energy Production
 - ↳ Medium/Big/Gigantic Sized Structures
 - ↳ Fan Art
 - ↳ Gameplay Help
 - ↳ Spread the Word
 - ↳ Off topic
 - ↳ This Forum
 - ↳ Celebration Party
 - Support
 - ↳ Gameplay Help
 - ↳ Discover Factorio Wiki
 - ↳ Discover Others Creations
 - ↳ Discover Mods
 - ↳ Discover Tools Around Factorio
 - ↳ Technical Help
 - ↳ Bug Reports
 - ↳ Resolved for the next release
 - ↳ Assigned
 - ↳ Not a bug
 - ↳ Pending
 - ↳ 1 / 0 magic
 - ↳ Duplicates
 - ↳ Minor issues
 - ↳ Desyncs with mods
 - ↳ Won't fix.
 - ↳ Resolved Problems and Bugs
 - ↳ Fixed for 2.1
 - Factorio Direction
 - ↳ Ideas and Suggestions
 - ↳ Outdated/Not implemented
 - ↳ Frequently Suggested / Link Collections
 - ↳ Implemented Suggestions
 - ↳ Development Proposals
 - ↳ Balancing
 - Contributions
 - ↳ Mods
 - ↳ Download mods
 - ↳ Mod portal Discussion
 - ↳ Mods
 - ↳ Mod Packs / Libs / Special Interest
 - ↳ 5dim's mod
 - ↳ Angels Mods
 - ↳ Atomic Power
 - ↳ Bob's mods
 - ↳ DyWorld
 - ↳ F.A.R.L
 - ↳ Fentus Challenge & Tool Mods
 - ↳ Logistic Train Network
 - ↳ MoMods
 - ↳ Reika's Mods
 - ↳ Resource Spawner Overhaul
 - ↳ Yuoki Industries
 - ↳ PyMods
 - ↳ Questions, reviews and ratings
 - ↳ Modding Discussions
 - ↳ Modding discussion
 - ↳ Modding help
 - ↳ Ideas and Requests For Mods
 - ↳ Modding interface requests
 - ↳ Implemented mod requests
 - ↳ Already exists
 - ↳ Won't implement
 - ↳ Documentation Improvement Requests
 - ↳ Resolved Requests
 - ↳ Development tools
 - ↳ Tools
 - ↳ Mod and installation managers
 - ↳ Cheatsheets / Calculators / Viewers
 - ↳ Development tools
 - ↳ Special interest mods and libraries
 - ↳ Modding Development
 - ↳ Multiplayer / Dedicated Server
 - ↳ Multiplayer Board
 - ↳ Archive
 - ↳ Maps and Scenarios
 - ↳ Translations
 - ↳ Texture Packs
 - ↳ Fan Art
 - ↳ Wiki Talk
 - ↳ To be sorted
 - ↳ Campaign / Scenario suggestions
 
