So, I'm making a fighting game, with gun pickups and stuff like that. The guns are all in a family together just called "Weapons". I have it so that when a player picks up a weapon, it gets pinned to the closest player. Some guns are small enough that the hitboxes are within the players, so that when the bullets are fired from the gun, they just shoot the player holding the gun. Basically, I want the bullets (and gun) to know which player is shooting, so they can ignore damage dealt to that player. It's probably a simple fix, but nothing I have tried has worked so far. (I've mostly just been trying to assign an ID to the player and then have instance variables for the gun and bullet that get assigned to whatever that is, but it's not working)