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

◆ AI_GetMyGroupIndexAndFillBlackList()

void Terraria.Projectile.AI_GetMyGroupIndexAndFillBlackList ( List< int > blackListedTargets,
out int index,
out int totalIndexesInGroup )
inlineprivate

Definition at line 54625 of file Projectile.cs.

54626 {
54627 index = 0;
54629 for (int i = 0; i < 1000; i++)
54630 {
54631 Projectile projectile = Main.projectile[i];
54632 if (projectile.active && projectile.owner == owner && projectile.type == type && (projectile.type != 759 || projectile.frame == Main.projFrames[projectile.type] - 1))
54633 {
54634 if (whoAmI > i)
54635 {
54636 index++;
54637 }
54639 }
54640 }
54641 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...

References Terraria.Entity.active, Terraria.Projectile.frame, Terraria.Projectile.owner, Terraria.Main.projectile, Terraria.Main.projFrames, and Terraria.Projectile.type.