Greetings,
Case study: Official single missions: HUMMWV: All the vehicles carry a flag, seen in the intro, and during the mission. When the player disembarks from his vehicle, he also carries a flag.
No guarantees on this but this is how I think it can be done: Place down a flagpole somewhere (possibly where it cannot be seen by the player) and name it. Place the flag that you want the unit to carry on it (for example, USA_Vlajka.pac). When you want to transfer the flag to a unit, use the code
flagPoleName setFlagOwner unitToCarryFlag.
This way, you can place flags on vehicles as well.
Untested, but it should work.
-Supr. Cmdr. PsyWarrior
-Psychic Productions