Skip to content
#3695
Auto-translated
Jewily, thank you very much, I seem to have already figured out a simpler way, but now I have a different problem – I can't test it. Here's the script: SetObjectEnabled("Garnizon_1", nil); print("garrison disabled"); function Garrison_1_Block_F() if GetCurrentPlayer() == 2 then SetObjectEnabled("Garnizon_1", true, 2); sleep(1); print("garrison enabled for the second player"); sleep(1); else if GetCurrentPlayer() == 1 then SetObjectEnabled("Garnizon_1", true, 1); sleep(1); print("garrison enabled for the first player"); sleep(1); else SetObjectEnabled("Garnizon_1", nil); print("you are neither the first nor the second player"); end; end; end; Trigger(OBJECT_TOUCH_TRIGGER, "Garnizon_1", "Garrison_1_Block_F"); If I test it personally, playing as the first, second, and third player, everything works. But the problem is that I can't make the computer-controlled players try to go through this garrison. I've tried all sorts of lures on the map, but they won't go through those gates, no matter what. I even placed unprotected towns nearby, but they still won't go there. How can I make these sheep try to go through there?