Search found 4 matches

by clbhn
Sat Jul 27, 2024 3:21 pm
Forum: Modding help
Topic: How to control a artillery turret to fire a specific position?
Replies: 3
Views: 572

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

I found https://mods.factorio.com/mod/ArtilleryFlares is similiar to my idea. But @IngoKnieto also encountered the issue of uncertain turrets. :cry:
by clbhn
Sat Jul 27, 2024 3:15 pm
Forum: Modding help
Topic: Storing Custom Metadata on Entities
Replies: 6
Views: 1050

Re: Storing Custom Metadata on Entities

https://lua-api.factorio.com/latest/cla ... nit_number is a unique number identifying this entity for the lifetime of the save. Maybe you can store by unit_number in a table?
by clbhn
Sat Jul 27, 2024 8:56 am
Forum: Modding help
Topic: How to control a artillery turret to fire a specific position?
Replies: 3
Views: 572

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

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.
by clbhn
Sat Jul 27, 2024 3:38 am
Forum: Modding help
Topic: How to control a artillery turret to fire a specific position?
Replies: 3
Views: 572

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

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

Go to advanced search