Projectile ignor team mates
How Can I get my projectile owner? I'm making team shooter and I need, that team sniper can't hit his team member. Projectile recognize in that team is the hit actor. but I don't know how to check it for person who shoot projectile. So here you can see how I call my projectile:
These is my projectile event graph:
And these is my Set Damage function, where I check if I try to hit team member:
You could save the instigator actor when you spawn the projectile actor, and upon hit you query this actor and put the logic there.
Alternatively you could setup two custom collision channels in project settings, one for team and one for enemy. And then set the collision response to ignore.
answered Jun 01 '18 at 07:57 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here