Blueprint Communication Error

Hi everybody. I’m making a simple RTS for practice and i need to verify if my projectile is not hitting his own team.
I’ve made this piece of code but it isn’t working:

There are two teams, 0 and 1.
It if i put the print connected to the team variable, it prints 0 & 1, but
if i put it into the set parent team pin it only prints 0.
I dont know what i’m doing wrong. Please help me.

I’ve added a delay and it worked.