|
TModLoader v1.4.4.9
TModLoader source code documentation
|
| int Terraria.Projectile.aiStyle |
Selects which vanilla code to use for the AI method. Vanilla projectile AI styles are enumerated in the T:Terraria.ID.ProjAIStyleID class. Modders can use vanilla aiStyle and optionally P:Terraria.ModLoader.ModProjectile.AIType to mimic AI code already in the game. This is usually only useful as a prototyping tool since it is difficult to customize existing aiStyle code. See P:Terraria.ModLoader.ModProjectile.AIType and ExampleCloneProjectileto see how to use vanilla ai. If you are using custom AI code, there is no need to set this field.
The Basic Projectile Guideteaches how to use an existing aiStyle.
Customizing an existing aiStyle usually requires following the Vanilla Code Adaption Guide.
Defaults to 0.
Definition at line 204 of file Projectile.cs.
Referenced by Terraria.Projectile.AI_007_GrapplingHooks(), Terraria.Projectile.AutomaticallyChangesDirection(), Terraria.ModLoader.ModProjectile.AutoStaticDefaults(), Terraria.Projectile.BombsHurtPlayers(), Terraria.Projectile.CanBeReflected(), Terraria.Projectile.CanCutTiles(), Terraria.Projectile.Colliding(), Terraria.Projectile.CutTiles(), Terraria.Projectile.Damage(), Terraria.Projectile.Damage_GetHitbox(), Terraria.Projectile.DefaultToSpray(), Terraria.Projectile.DefaultToWhip(), Terraria.Projectile.HandleMovement(), Terraria.Projectile.Interrupt(), Terraria.Projectile.IsInterruptible(), Terraria.Projectile.NewProjectile(), Terraria.Projectile.SetDefaults(), Terraria.Projectile.Shimmer(), Terraria.Projectile.ShouldUseWindPhysics(), Terraria.Projectile.UpdateEnchantmentVisuals(), Terraria.Projectile.UpdatePosition(), and Terraria.Projectile.VanillaAI().