Professor Boxtrot
Terrarian
Well, depending on what AI style you are using, a simple way to make a quick flicker of light would be using a counter and have the projectile have light for a certain amount of ticks then disable it, so it should look something like this
Code:public override void AI() { projectile.ai[0] += 1f; //If the counter is less than a tenth of a second if(projectile.ai[0] < 6) { projectile.light = 0.1f; //shine light } else { projectile.light = 0f; //Don't shine light if its more than a tenth of a second } }
I have it inside my "public class Item1 : ModItem
c:\Users\Tyler\Documents\My Games\Terraria\ModLoader\Mod Sources\TylersGunMod\Items\Glock18\Glock18.cs(44,24) : error CS0115: 'TylersGunMod.Items.Glock18.Glock18.AI()': no suitable method found to override