interesting concept, and this might work.
See
Conditions:Player:Area:Player has (comparison) units in an area.
You can select the headers INFANTRY or VEHICLE for the condition, then under Actions if True, there is
Player:Transfer:Transfer a specific unit.
the code will ask you for a unit named:. Use <this unit>.
The Condition code looks like this:
Player 'player0' has Greater Than 0 unit or structure of type 'VEHICLE' in the area 'areaWhatever'
**OR***
Player 'player0' has Greater Than 0 unit or structure of type 'INFANTRY' in the area 'areaWhatever'
***OR***
(repeat for each player)
The Action if true code looks like this:
Unit '<This Object>' is transferred to the command of Player 'playerN'
where N is a number, of course.
I can't say fer sure that this will work. I haven't tried it, but it looks real to me. Then again, if playerN is AmericanGeneral and the unit is ChinaTankGeneral, it will probably need further code to make the unit usable to the recipient.
Edited by user Wednesday, March 28, 2012 2:32:56 PM(UTC)
| Reason: Not specified