Projectile behaviour when homing (and not)

Place to report issues and suggest improvements to the API documentation.
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 405
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Projectile behaviour when homing (and not)

Post by Stringweasel »

Just some information that I figured out which cost me an few headscratches, which could be part of the documentation for https://lua-api.factorio.com/latest/pro ... otype.html. I believe this could be part of the general description at the top.
Projectiles have two modes, homing, or not homing.

When in homing mode only one projectile can home to a single target, which can cause projectile turrets to not launch another projectile if the first projectile missed the target. When in this mode the projectile doesn't need a collision box.

When not in homing mode the projectile needs a collision box.
Something I'm unsure of, when the projectile never collides with anything, will it travel forever?
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration

User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 405
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: Projectile behaviour when homing (and not)

Post by Stringweasel »

Also, https://lua-api.factorio.com/latest/typ ... #max_range
This is the maximum range this projectile will travel after which it will expire.
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration

Post Reply

Return to “Documentation Improvement Requests”