Using a nested-result and projectile action_delivery causes direction deviation to be ignored. Occurs on damaged_trigger_effect and on ammo_types for units.
The above code sends all projectiles out at once, in the same direction. Resulting in a single blob of projectiles.
This example is used in a unit's ammo_type for attack parameters with 12 projectiles. If nested, it results in all projectiles in the same spot. Without being nested, they fire in a wide radius around the unit.
[2.0.76] nested-result direction deviation
[2.0.76] nested-result direction deviation
- Attachments
-
- factorio-current.log
- (5.13 KiB) Downloaded 12 times
Re: [2.0.76] nested-result direction deviation
Thanks for the report. Looking at the code - this is working correctly. When a trigger specifically targets an entity the direction deviation is not used. It's only when there is no direct entity target - or the projectile created is marked as direction_only - does the direction deviation get used.
If you want to get ahold of me I'm almost always on Discord.
Re: [2.0.76] nested-result direction deviation
Sorry I forgot to mention, all my current projectiles have direction_only set to true, and they do work in non nested-result cases. Does an entities damaged_trigger_effect provide itself as a source_effect for the purpose of these triggers? Also thank you for the quick response and info!
Re: [2.0.76] nested-result direction deviation
Yes.ruhnva wrote: Wed Apr 22, 2026 3:07 pm Does an entities damaged_trigger_effect provide itself as a source_effect for the purpose of these triggers?
If you want to get ahold of me I'm almost always on Discord.
Re: [2.0.76] nested-result direction deviation
I suggest going into "The Rest" settings GUI and enabling this setting
It may help diagnose issues.
It may help diagnose issues.
If you want to get ahold of me I'm almost always on Discord.
Re: [2.0.76] nested-result direction deviation
Thank you for the suggestion, the help, and the answers. That setting is extremely useful and I did not realize that it existed.Rseding91 wrote: Wed Apr 22, 2026 3:53 pm I suggest going into "The Rest" settings GUI and enabling this setting
04-22-2026, 11-53-12.png
It may help diagnose issues.

