Projectiles disappear when hit a mesh

Hello,

(I’m French and young, sorry if I do spelling mistakes)
I’ve make a weapon system but as soon as a projectile hit a mesh, he disappear. In my weapon blueprint and my projectile blueprint, there is nowhere “destroy actor”.

PS : I can’t show you my script but I haven’t my computer here, sorry. (but if you want absolutly my blueprint, I will publish it)

Thank you,

Are you using the default FPS BP Template ?

Yes, but I’ve modify the weapon system for have weapons and projectiles in separate blueprint.

In the 4.7 the projectile have a setup to destroy at touch things.
But now in the 4.7.6 is changed no idea why and don’t shoot projectiles.

Check the projectile class, now i can’t see because i got the new files.
From my C++ code i see this:

void AProjectile::OnHit(AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit)
{
	// Only add impulse and destroy projectile if we hit a physics
	if ((OtherActor != NULL) && (OtherActor != this) && (OtherComp != NULL) && OtherComp->IsSimulatingPhysics())
	{
		OtherComp->AddImpulseAtLocation(GetVelocity() * 100.0f, GetActorLocation());

		Destroy();
	}
}

Check the projectile and the on hit event.

Ok, I go see that, but I must recompile with Visual Studio after ?

If you are using the C++ Template you need to change the code and compile for example comment the line //Destroy(); but if you are using the Blueprint Template you go to the class in the browser in the editor and delete the destroy node in the projectile class.

*If you are using only Blueprints, don’t need use Visual Studio.