Page 1 of 1

How to control a artillery turret to fire a specific position?

Posted: Sat Jul 27, 2024 3:38 am
by clbhn
`create_entity(name = "artillery-flare")` can implement it. However, the artillery turret used is uncertain.

I want to create a fire control computer for artillery turrets to automatically fire moving enemies. Therefore, I need to obtain the time from when the turret turns to when it hits the target, the position and velocity of the enemy, and then calculate the shooting lead to ensure accurate targeting.

Re: How to control a artillery turret to fire a specific position?

Posted: Sat Jul 27, 2024 6:23 am
by Koub
I think this mod does something very similar :
https://mods.factorio.com/mod/ArtilleryCombinator

Re: How to control a artillery turret to fire a specific position?

Posted: Sat Jul 27, 2024 8:56 am
by clbhn
Koub wrote: Sat Jul 27, 2024 6:23 am I think this mod does something very similar :
https://mods.factorio.com/mod/ArtilleryCombinator
Thanks for your comment. And it uses `create_entity(name = "artillery-flare")` to fire.

Re: How to control a artillery turret to fire a specific position?

Posted: Sat Jul 27, 2024 3:21 pm
by clbhn
I found https://mods.factorio.com/mod/ArtilleryFlares is similiar to my idea. But @IngoKnieto also encountered the issue of uncertain turrets. :cry: