Short Question: How can I stop Actors with same tag damaging each other (skill attack, melee, projectile and etc.).
Details: I’m trying to create a diablo like game using AcrionRPG template. Similar to diablo, my screen also gets filled with different enemies. The problem is that these enemies can damage each other and kill each other without the player ever attacking them. You can see this problem by completing two or three waves in the AcrionRPG template and wait for the giant spider to spawn. This giant spider attacks easily kill other creeps(NPC_GoblinBP). This seems like a fine feature in a game with relatively low number of characters in it. But in my game when several normal enemies along with some bosses spawn in level it tends to get ridiculous.
An other problem is that I have created a companion for my character that finds enemies using their tags and attack them. The AI class and my character works fine but when I use an ability near this companion or attack him, it takes damages and eventually die! which is a nightmare for me.
I looked at the blueprints and didn’t find any solutions. I traced
TryActivateAbilitiesByTag in the
BP_Character to its roots, but my lack of practice with C++ finally came to hunt me and I got lost.
Any answers or suggestions would be greatly appreciated.