I was trying to figure out what its going on but nothing seems to have change but i realize that the first time i made the Spawn projectile componente i add it as a Static Mesh componente so i change it to a uSceneComponente but know im not able to see the spawn point on my BP_ turret and my BP_ Tank so i think that its why my game crash whenever i try to shoot a rpojectile or a turret does it, because there is no spawn point on my BP Pawns so im not sure how can i See my spawn projectile component on my scene
TURRET
TANK
In both of the Pawns doesnt appear anything on the detail panel when i click the prjectile compoenent and also it doesnt show anything on the viewport.
So i believe the errore its on the base pawn it might be on the header file on the scene component or in the cpp on the fire () function. because whenever something shoots the game crashes.
BASE PAWN.H
BASE PAWN.CPP
On the fire condition i tried to protect my code from null pointers but it seems something still wrong so i Made a chek before running the Projetctile Spawn so If There is not Projectile Class or the Spawn projectile componente the code shouldnt run, and it worked ass speected but now im not able to shoot my projectile because there is no spawn point on my BP_Pawns so thats why im not able to shoot i prevent the crash but the spawn projectile component doesnt exist, im not able to shoot and the turrets either
FIRE()
CRASH LOG
since a put some protection this crash doesnt appear any longer but my spawn point componente doesnt exist on my game for some reason