POCKETS
Terrarian
OK, so I know the title is a bit confusing, so I'll explain the issue -
I have a projectile that needs to spawn a new projectile (same projectile as the original) after a certain amount of time.
Currently, I'm using projectile.timeLeft to accomplish this inside my projectile's AI.
However, the new projectiles are also spawning new projectiles (obviously), so I need a way to prevent this from happening.
I just need new projectiles to spawn once after the original projectiles have lived for a certain amount of time.
Is there a better place to accomplish this task than inside the AI? It makes sense that they'd keep spawning, as new projectiles are using the same AI...
EDIT: I suppose if I made the new projectiles a completely separate projectile, and not the same exact projectile, it might work better...
I have a projectile that needs to spawn a new projectile (same projectile as the original) after a certain amount of time.
Currently, I'm using projectile.timeLeft to accomplish this inside my projectile's AI.
However, the new projectiles are also spawning new projectiles (obviously), so I need a way to prevent this from happening.
I just need new projectiles to spawn once after the original projectiles have lived for a certain amount of time.
Is there a better place to accomplish this task than inside the AI? It makes sense that they'd keep spawning, as new projectiles are using the same AI...
EDIT: I suppose if I made the new projectiles a completely separate projectile, and not the same exact projectile, it might work better...