Auto-translated
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.