Ignore Collisions with MyPawn

I am using spawn actor for my bullets, but sometimes they hit my character. Is there any way to make the bullets ignore the player who spawned them?

You can set up custom collision channels and profiles in the project settings. You could make a collision channel for your player and a collision profile that is just like the normal pawn one but it ignores your player. Theres instructions on how to do it here: Collision in Unreal Engine | Unreal Engine 5.1 Documentation

If you’re using an OnHit event You could also just check to make sure the hit actor is not the player and ignore the hit if it is.

If you’re using any sort of trace you can specify actors to ignore as part of the trace.