47295 {
47296
47297
47298
47299
47300
47301
47302
47303
47304 int num = (int)
ai[0] - 1;
47306 {
47309 }
47311 {
47314 {
47318 }
47319 }
47321 {
47326 {
47329 }
47331 {
47333 frame = Main.rand.Next(Main.projFrames[
type]);
47334 }
47335 }
47336 else
47337 {
47339 }
47340 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Vector2 DirectionTo(Vector2 Destination)
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
bool netUpdate
Set manually to true in M:Terraria.ModLoader.ModProjectile.AI once to make it sync its current F:Terr...
NPC FindTargetWithinRange(float maxRange, bool checkCanHit=false)
int frame
The frame number in the spritesheet that this projectile will be drawn with. Assign in M:Terraria....
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...
int frameCounter
Used as a timer to decide when to change F:Terraria.Projectile.frame. Defaults to 0.