type = switch_allegiance which = [unit id type/-1] value = [unit id id] where = [country tag]
# -1 is a random land unit
# -2 random naval unit
# -3 random air unit
# (value will be ignored).
This command does switch the allegiance of a corps (with all its divisions) to the recipient - WAD.command = { type = switch_allegiance which = -1 where = GER }
If you want to use this command to move the french units to Vichy during the Vichy creation be warned that it has an ugly surprise for you: it doesn't recognize Vichy as recipient of these units because it was released just a few lines above!! :-(
This command doesn't work.command = { type = switch_allegiance which = -2 where = GER }
This command does surprisingly switch the allegiance of a corps (with all its divisions) instead of an air command (with all its air wings) to the recipient.command = { type = switch_allegiance which = -3 where = GER }
With this command you can directly target land/naval/air units (with all their units inside). Sadly, you don't know their ids in advance. :-(
The order of the commands inside the brackets can freely be chosen.command = { type = switch_allegiance which = 13500 value = 135 where = ITA }
command = { type = switch_allegiance which = 13500 where = ITA value = 135 }
Although is has already been mentioned that this command doesn't work properly I wasn't aware that it's actually working - partially. To improve the situation re creation of Vichy and the transfer of forces, especially naval units, it would be rather helpful to fix this command.
Upvote
0