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

Place to get help with not working mods / modding interface.
clbhn
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Jul 27, 2024 3:29 am
Contact:

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

Post 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.

Koub
Global Moderator
Global Moderator
Posts: 7717
Joined: Fri May 30, 2014 8:54 am
Contact:

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

Post by Koub »

I think this mod does something very similar :
https://mods.factorio.com/mod/ArtilleryCombinator
Koub - Please consider English is not my native language.

clbhn
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Jul 27, 2024 3:29 am
Contact:

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

Post 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.

clbhn
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Jul 27, 2024 3:29 am
Contact:

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

Post 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:

Post Reply

Return to “Modding help”