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

◆ IsActiveAndInGame()

bool Terraria.Audio.ProjectileAudioTracker.IsActiveAndInGame ( )
inline

Definition at line 15 of file ProjectileAudioTracker.cs.

16 {
17 if (Main.gameMenu)
18 {
19 return false;
20 }
21 Projectile projectile = Main.projectile[_expectedIndex];
22 if (projectile.active)
23 {
24 return projectile.type == _expectedType;
25 }
26 return false;
27 }

References Terraria.Audio.ProjectileAudioTracker._expectedIndex, Terraria.Audio.ProjectileAudioTracker._expectedType, Terraria.Entity.active, Terraria.Main.gameMenu, and Terraria.Main.projectile.

Referenced by Terraria.Projectile.AI_195_JimsDrone().