TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ timeLeft

int Terraria.Projectile.timeLeft

Time in ticks before this projectile will naturally despawn.
Each update timeLeft is decreased by 1. Once timeLeft hits 0, the Projectile will naturally despawn. The default value, 3600, is measured in ticks, which are usually 60 per seconds, so the default despawn time is about 60 seconds. Adjust this if you want the projectile to fizzle early rather than travel infinitely. Note that F:Terraria.Projectile.extraUpdates will cause it to decrease faster than normal time because Update is being called more often.
Defaults to 3600.

Definition at line 211 of file Projectile.cs.

Referenced by Terraria.Projectile.AI_149_GolfBall(), Terraria.Projectile.AI_152_SuperStarSlash(), Terraria.Projectile.BombsHurtPlayers(), Terraria.Projectile.Damage(), Terraria.Projectile.HandleMovement(), Terraria.Player.QuickGrapple(), Terraria.Projectile.ReduceRemainingChumsInPool(), Terraria.Projectile.SetDefaults(), Terraria.Projectile.Shimmer(), Terraria.Projectile.Update(), and Terraria.Player.UpdateMaxTurrets().