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

◆ DropSelectedItem_InterruptActionsThatUseAnimations()

void Terraria.Player.DropSelectedItem_InterruptActionsThatUseAnimations ( )
inlineprivate

Definition at line 5656 of file Player.cs.

5657 {
5658 if (heldProj >= 0)
5659 {
5660 Projectile projectile = Main.projectile[heldProj];
5661 if (projectile.active && projectile.owner == whoAmI)
5662 {
5663 projectile.Kill();
5664 }
5665 }
5666 for (int i = 0; i < 1000; i++)
5667 {
5668 Projectile projectile2 = Main.projectile[i];
5669 if (projectile2.active && projectile2.owner == whoAmI && (projectile2.aiStyle == 61 || projectile2.aiStyle == 160))
5670 {
5671 projectile2.Kill();
5672 }
5673 }
5674 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16

References Terraria.Entity.active, Terraria.Player.heldProj, Terraria.Projectile.Kill(), Terraria.Projectile.owner, Terraria.Main.projectile, and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.DropSelectedItem(), and Terraria.Player.PlayDroppedItemAnimation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: