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.
Hello everyone. I'm having big problems with the caravan. I've searched for information in the API, but there are practically no interactions with it.
Situation: I'm creating a caravan for PLAYER_1 (the player), setting its destination, angle, and assigning an army. I need to make it so that troops cannot be taken from the caravan. If I use SetObjectEnabled, it doesn't affect the caravan, and besides, I need the AI to be able to attack it. I can't assign PLAYER_NONE, and if I give it the ID of a non-existent player, it becomes neutral, but it refuses to move. Any ideas on how to implement this? I don't want to implement the function with even more workarounds. I was thinking of creating an allied player and giving them a command with PLAYER_1; naturally, then the caravan couldn't be taken, and it could be attacked, but does it make sense to create a new player just for one caravan?
By the way, thanks to Khotabych for helping with the previous question.