Connection ErrorBad RequestThis page went staleSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
Help me, kind people, with another script.
The idea is that initially, only the second player should be able to pass through the garrison, and under certain conditions, the first player should also be able to.
But the script doesn't work from the very beginning.
If you write in MapScript:
SetObjectEnabled("Garnizon_1", nil);print("garrison disabled");
and then:
function Garrison_1_Block_F()SetObjectEnabled("Garnizon_1", true);sleep(1);print("garrison enabled");sleep(1);end;Trigger(OBJECT_TOUCH_TRIGGER, "proba", "Garrison_1_Block_F");
- then everything works fine.
But if you write:
SetObjectEnabled("Garnizon_1", nil, 1, 3, 4, 5, 6, 7, 8); ---or false, I tried
print("garrison disabled");function Garrison_1_Block_F()SetObjectEnabled("Garnizon_1", true, 1);sleep(1);print("garrison enabled for the first player");sleep(1);end;Trigger(OBJECT_TOUCH_TRIGGER, "proba", "Garrison_1_Block_F");
- then the garrison is disabled for the second player as well, and it doesn't turn on for the first player either.
As always, what am I doing wrong?
And specifically, how do I disable the garrison from the very beginning for everyone except the second player?