I’m pretty new and not sure exactly what is causing this, but I think it’s the while loop, which seems to crash the game whenever I try to play it. I’m trying to make it fire two projectiles next to each other in quick succession, and that all needs to happen every 0.2-0.3 (fast) seconds while the enemy can see the player. (It’s a B2 super battle droid) I saw that OnSeePawn checks every 0.5 sec, so I tried all this because I need it to fire faster than that.
I know there has to be a better way to do this, I’m just not sure what.
Most people try to avoid using Tick but checking a bool or two on tick isn’t so bad. I guess if I had to give an opinion, the event version is probably the best way. You just need to be careful about turning the event timer on and off properly.