My character spawns a bullet out of a socket.
It looks very fitting.
But only if I set the collision conditions to “IgnoreOnlyPawn”, the bullet flies forward nicely.
At the spawn position I don’t want to change anything, so how I just ignore the own character at spawn?
I see a possibility with ,SetOwner()´´
But how exactly, an example please. I am still a beginner in C++.
Thanks for the tip, but it does not want to compile, it does not know “ProjectileCollision”.
My Bullet is an actor with sphere, and projectilemovement.
You should probably study the ShooterGame template project from Epic. It’s a rite-of-passage for any UE4 C++ developer to be honest, and will give you a headstart.
Also most if not all of this is exposed in Blueprint, which you should spend a lot of time in before switching to C++ because it’s a much faster way of learning UE’s API and the way it expects you to build the game.
Thank you very much, I will start right away. I’ve been working with BP for 3 years now, but I had the impression that if you really want to realize a game one day, you should know with C++.