Is there a way to heal teammates with bullets?

I need help writing a code that makes it so weapons heal teammates while still damaging opponents for a hero-based gamemode for UEFN. I have no idea where to start.

I don’t know anything about UEFN unfortunately, but the basic logic would be, on your bullet actor, on collision event, check whether their in your team or not, and use a branch decision to either apply damage or heal. Wish I could offer more indepth advice but I haven’t used UEFN or done any multiplayer work yet. Best of luck