It’s a problem because projectile collides with itself (projectile with projectile) or with player… How can I solve this? I want to make collision projectile with all environment and NPCs without itself and player…
Example this projectile collisions printed on screen (“print string display name”):
Player
Player
Projectile
Player
Projectile
Your best bet is to create a custom collision channel, and make sure the projectile doesn’t collide with itself. Failing that, you could switch off collisions on the particle breifly when it’s created.
Make sure that your StaticMeshComponent (StaticMesh1) has collision disabled. I do this here:
You also need to make sure that the projectile is spawned outside the player collision, so it doesn’t collide with them (which I also do in that video). Another option is to use overlap events instead of hit events, as those don’t actually stop the projectile moving, and you can ignore overlaps you are not interested in.
Thanks for all replies. The problem was ridiculous. I have on my scene many brushes but brushes objects don’t execute hit events so my projectiles collide with brushes but don’t destroy on hit then enemies or player move straight toward projectile and execute event.