The second method is to take control of another players units.
Screenshot 2026-03-06 153311.png
To let Germany take control of the 4 units in Bulgaria and the one unit in Varna.
In the unitAttachment for infantry add <option name="canBeCapturedOnEnteringBy" value="Germans"/>.
In the territoryAttachment for Bulgaria and Varna add <option name="captureUnitOnEnteringBy" value="Germans"/>.
In the playerAttachment for Neutral_Player add <option name="captureUnitOnEnteringBy" value="Germans"/>.
And set <property name="Capture Units On Entering Territory" value="true"/>.
Then this <option name="changeOwnership" value="Bulgaria:any:Germans:true"/> in a trigger, the 'when' can be any step.
After Germany's noncombat move.
Screenshot 2026-03-06 171112.png
The 4 units changed, but not factory or the Territory and because Germany moved into Varna during noncombat the unit and territory does not change.
Adding <option name="canTakeOverOwnedTerritory" value="true"/> to the relationshipTypeAttachment between Germany and Neutral_Player to get this.
Screenshot 2026-03-06 154000.png
Control of the units happens on the 'true' setting of 'changeOwnership' and changes at the 'when'.
Cheers...