Code to disable automatic artillery shooting

Place to get help with not working mods / modding interface.
Post Reply
MartinMaxKing
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun Oct 09, 2022 12:47 pm
Contact:

Code to disable automatic artillery shooting

Post by MartinMaxKing »

Guys, I need code to disable automatic artillery shooting for military targets for BB server (for special games) so I can not use mods there.
Unfortunately I can not find anything about it.
Can someone share this code, please.

Disable automatic artillery shooting - can be performed on selected artillery in map editor (preferable) or just for all artillery on map.
Thank You :)

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: Code to disable automatic artillery shooting

Post by FuryoftheStars »

As far as I know, mods accomplish this by creating an entity variation that doesn't have automatic targeting, then swaps/replaces the needed entities in game as the player toggles it on/off.

You can check out the code of the mods that allow toggling automatic fire to verify what they do and adapt it for yourself. But if the needed method is to create a new entity, then I'm not sure you can do it without a mod.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics

Post Reply

Return to “Modding help”