How to set up flag capturing?

Hey guys.
I am building an RTS game and i want to build it like company of heroes. But how do i add the flag capturing element.

A comment 9 years later… XD

I am also trying to do something similar. I have “regions” in a level whose owner player can change during gameplay (and the owner of everything inside the region.) My approach is to create a collision volume that acts as the border of the region and using the collision channels, the region detects what is overlapping. For example, It can count the number of actors (of specific type).

I think this would work for your case too. Region counts the number of units and start flag capturing only if there is one player (alliance) units in the region borders. When the capture time finishes, region itself changes its owner.