To spawn an actor, you’ll need to use the SpawnActor function, from the UWorld class. Instead of using FinishSpawningActor, first make a location for the projectile to be spawned, a rotation, a FActorSpawnParameters variable, and a variable to store the class to spawn. Heres an example.
You got a NULL because in Line 2, you declare your variable (TSubclassOf< class AProjectile> projectileClass;) but you do not give any value to that variable, like:
Where ASpecificProjectile is one of your projectile class.
However, in your case, aside from the class of projectile to be spawned, you do not seem to need any specific parameter to be set before spawning (like a mesh, a color, damage parameter or whatever).
If you only want to select the class of projectile to be spawned, then is right and you should use the SpawnActor method instead: GetWorld()->SpawnActor(ASpecificProjectile::StaticClass(), …)