tModLoader Help with an NPC shooting projectiles.

Annoying Meower

Steampunker
So, I'm making a custom boss in tmodloader, but whenever it shoots, the projectile just stays put and doesn't fire at the player. I really need help.
public override void AI() {
if (AI_State == State_Flutter) {
AI_Timer++;
npc.TargetClosest(true);
if (AI_Timer >= 50) {
int damage = npc.damage / 2;
int proj = Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, ModContent.ProjectileType<FireOrbHostile>(), damage, 0, Main.myPlayer);
AI_State = State_Flutter;
AI_Timer = 0;
}
}
}
I can put all my ModNPC file coding here if requested.
 
Back
Top Bottom