Page 1 of 1

Code to disable automatic artillery shooting

Posted: Mon Oct 24, 2022 5:15 pm
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 :)

Re: Code to disable automatic artillery shooting

Posted: Mon Oct 24, 2022 11:08 pm
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.