Auto-translated
Help, kind people.
Does anyone happen to know how to write a separate script for the gates of a garrison?
I haven't come across anything like that before, and yet, in this model, there is a Script tab.
Surely, it's not a function; you just need to write it directly, without any introductions, right?
I want only the owner of a specific castle and another specific castle to be able to pass through the gates, that is, two conditions.
How is this written?
You can create a region where the garrison is located. Then, using a script, block the region with SetRegionBlocked. SetRegionBlocked("region name", true or false, 1)
True blocks, false unblocks.
1 is the player number, i.e., red. The second is blue, and so on.