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

◆ DefaultToSpray()

void Terraria.Projectile.DefaultToSpray ( )
inline

Definition at line 10053 of file Projectile.cs.

10054 {
10055 width = 6;
10056 height = 6;
10057 aiStyle = 31;
10058 friendly = true;
10059 alpha = 255;
10060 penetrate = -1;
10061 extraUpdates = 2;
10062 tileCollide = false;
10063 ignoreWater = true;
10064 }
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
int aiStyle
Selects which vanilla code to use for the AI method. Vanilla projectile AI styles are enumerated in t...
int penetrate
The remaining number of npc can this projectile hit before dying. (Or tile bounces)....
int alpha
How transparent to draw this projectile. 0 to 255. 255 is completely transparent. ExampleBulletsets...
bool ignoreWater
The projectile will not be affected by water. Defaults to false.
bool friendly
If True, this projectile will hurt enemies (!F:Terraria.NPC.friendly) Defaults to false.
bool tileCollide
If true, the projectile will collide with tiles, usually bouncing or killing the tile depending on M:...
int extraUpdates
Additional update steps per tick. Useful for really fast projectiles such as Shadowbeam Staff....

References Terraria.Projectile.aiStyle, Terraria.Projectile.alpha, Terraria.Projectile.extraUpdates, Terraria.Projectile.friendly, Terraria.Entity.height, Terraria.Projectile.ignoreWater, Terraria.Projectile.penetrate, Terraria.Projectile.tileCollide, and Terraria.Entity.width.

Referenced by Terraria.Projectile.SetDefaults().

+ Here is the caller graph for this function: