Hi,
Today I decided to go back to a little bit older of a project and work on it. It’s a multiplayer game, though EXTREMELY unfinished (I really only did it to teach myself some more ue4 c++.) The reason I stopped working on it in the first place is because I couldn’t find out how to stop bullets from hurting the person that shot them. I could always just spawn the bullets slightly farther from the shooter, and then make the bullets not bounce off walls, but I didn’t want to do that; I wanted to actually solve it.
So right now, I’m trying to let the projectile that is fired “know” which team it belongs to.
Lets say I’m on Team 1 and I shoot a bullet. It shouldn’t be able to damage any players on Team 1. I’m trying to do this by creating a team variable in the projectile, but I can’t figure out how to tell the projectile which team it’s on/cast the Team variable from the player to the projectile they fired.
Any ideas or help? Thanks!