Not possible to remove homing from attack_parameter based projectiles?

Place to get help with not working mods / modding interface.
swizzlewizzle
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu May 14, 2020 7:58 am
Contact:

Not possible to remove homing from attack_parameter based projectiles?

Post by swizzlewizzle »

So, very surprisingly to me, I don't see any field for turning on/off the homing property that all "projectile" based action delivery methods seem to have by default. (this is in attack_parameters for a unit).

I'm using projectiles to simulate AOE sweep attacks in melee, and obviously, that's impossible if all the projectiles meant to simulate the "sweep" home directly into their target...

Is there any way to disable or get around this default homing behavior somehow?
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5404
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Not possible to remove homing from attack_parameter based projectiles?

Post by Klonan »

You can set the projectile to target a position in the attack parameters, rather than an entity

And you can also set the projectile 'direction_only = true' in the prototype:

https://wiki.factorio.com/Prototype/Projectile
swizzlewizzle
Burner Inserter
Burner Inserter
Posts: 10
Joined: Thu May 14, 2020 7:58 am
Contact:

Re: Not possible to remove homing from attack_parameter based projectiles?

Post by swizzlewizzle »

Direction and entity based targeting both default, and are locked too, the homing behavior.

direction_only = true seems to work, but it definitely isn't intuitive that it would mean "homing = false".

Thanks.
Post Reply

Return to “Modding help”