Making an effective Capture the flag with an NPC?

Hello, and thank you for reading! I’m a beginner learning the engine. For a college assignment, I’m creating a capture-the-flag demo where an NPC competes with you for the flag and then runs to its base.

I’m currently planning the project (this needs to be completed in the classroom within two hours), and my idea is to create a behavior tree with steps to find the flag, go to the flag, take the flag (attaching it to a socket), and then head to the base. The player will follow the same steps.

What I’m struggling with is the mechanic for “stealing” the flag from each other. I thought a quick way to handle this might be to implement an interaction interface that removes the flag from one actor and gives it to the other. Would this be an effective way to do it? If anyone could suggest a better approach, I would be very grateful.