How do copies of spawned actor interact each other?

Dear UE community,

A newbie here, I have a small project where I spawn copies of the same actor class on the level. I’m trying to reduce the values (life, power, efficiency etc…) from the second copy if they are placed close to each other.

In the actor bp, on a collision event begin overlap I have a cast to actor class itself, when I place a second copy close to each other, they both keep losing value at the same amount. I tried using an array but I don’t really know what is going wrong and how do I differentiate each copy from each other? Thanks for any tips.

They’re both the same blueprint, so they will both lose life.

If you want one to lose, and the other not, then put a bool ( visible in the editor ) in the blueprint. Set the player to only lose life if the bool is set.

After spawning one of the players, change the bool to false.

That worked! :slight_smile: