The For-loop kills projectiles

Ok I noticed the guard and the player character couldn’t shoot any more.
In the world outliner I noticed projectiles were being killed off instantly.
After some research online, I learnt that the for loops mess up with projectile lifetime. I went and removed the for loops and characters were able to shoot again. Anyone got a good alternative for the for loop?

Did it work before the for loop was added? As something like that is normally a collision issue, with the projectile hitting the TPCharacters Capsule Component mesh as it spawns. Try setting the Fire Component further out from the gun.

I was totally wrong about this. It only worked when testing on tile added manually. It is the trigger collision-related bug that is fixed by Sam later on.

I Think The For-Loop not kill projectiles

but actually thing to kill projectiles is

collission box

Privacy & Terms