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

◆ IsAttachedTo()

bool Terraria.Projectile.IsAttachedTo ( NPC npc)
inline

Definition at line 77892 of file Projectile.cs.

77893 {
77894 if (aiStyle == 113 && ai[0] == 1f && ai[1] == (float)npc.whoAmI)
77895 {
77896 return true;
77897 }
77898 return false;
77899 }
int aiStyle
Selects which vanilla code to use for the AI method. Vanilla projectile AI styles are enumerated in t...
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....

References Terraria.Entity.whoAmI.

Referenced by Terraria.NPC.PopAllAttachedProjectilesAndTakeDamageForThem().

+ Here is the caller graph for this function: