When creating a mod, is there a way to modify the minimal distance from the capture point where a rally can be placed?
Already answered you in discord, but would be good repeat it also here for other users.
Yes. I think this is possible.
I think for that you need edit:
building_builder__minDistanceToCapturePoints
And you can do it only by editing entities.blk.
It should have like this code:
base_rallypoint_preview{
_override:b=yes
building_builder__minDistanceToCapturePoints:r=10.0
}
As result you should be able sometimes build rallypoint closer to point 10m more then usually (Default is 20.0).
About entities.blk.
You need create it in your modname folder that in userGameMods
folder. Just copy scene.blk. Remove all code in copy version of scene.blk and then write code that i sent earlier. After that do test and set value that you wants to see.
ALERT: In multiplayer it may cause desync!
It maybe will be red, but player can place it. Or be green and not placeable or placeable, but automatically destroyed when builded.