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

◆ GetByUUID() [2/2]

static int Terraria.Projectile.GetByUUID ( int owner,
int uuid )
inlinestatic

Definition at line 20922 of file Projectile.cs.

20923 {
20924 if (uuid < 0 || uuid >= 1000 || owner < 0 || owner >= 255)
20925 {
20926 return -1;
20927 }
20928 int num = Main.projectileIdentity[owner, uuid];
20929 if (num >= 0 && Main.projectile[num].active)
20930 {
20931 return num;
20932 }
20933 return -1;
20934 }
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...

References Terraria.Projectile.owner, Terraria.Main.projectile, and Terraria.Main.projectileIdentity.