The only NPC whose weapon returns as a boomerang mechanic. It turns out that in the code "Combat wrench" there is a return to the Mechanic. Is it possible to copy the Clone Defaults of the projectile and change which NPC is returned??
My NPC shoots an ice boomerang. He shoots a projectile normally, but the boomerang does not return to him, but to the player. How to fix it?
public override void TownNPCAttackStrength(ref int damage, ref float knockback) {
damage = 20;
knockback = 4f;
}...
Thanks for the information, but I have played a LOT of time in Terraria and I know everything about fishing. It's my mistake that I didn't specify, I need to add a mod fish to my mod in tModLoader
Yes, I need an addition to my mod. I read the Example Mod and there I found information about the fishing rod, bober and quest fish, but I did not find about the standard fish
I make a spear that shoots a projectile-spears with another projectile, but the second projectile does not cause damage. Here is the code of the spear and the code of the second projectile:
using DTP.Projectile;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using...
I replaced it and now my code looks like this (the error is the same):
private int shootTimer;
private const int shootRate = 5 * 60;
public override void AI()
{
shootTimer++;
if (shootTimer >= shootRate)
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center.X, NPC.Center.Y, 0f, 0f...
This is not the whole code, if necessary, here is the whole:
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ModLoader.Utilities;
using DTP.Items;
using Terraria.GameContent.ItemDropRules;
namespace DTP.NPC
{
public class FrostElemental : ModNPC...
My NPC doesn't want to shoot for some reason.
Here is my code and error:
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ModLoader.Utilities;
using DTP.Items;
using Terraria.GameContent.ItemDropRules;
приватный таймер съемки;
private const int...
Спасибо за ответ, но у меня новая проблема с ним - пишет что NewProjectile не существует в папке имён МойМод.Projectile
Мне нужен снаряд нужно брать из самой Террарии
I want my NPC to appear in a snowy biome during a blizzard (both day and night). Also tell me how to make an NPC shoot
public override float SpawnChance(NPCSpawnInfo spawnInfo)
{
if (spawnInfo.Player.ZoneRain);
return SpawnCondition.OverworldDaySnowCritter.Chance * 0.2f;
}
Thank you, it helped. Only I don't understand how to make additional arrows fly randomly according to a given spread. I also don't understand how to use ordinary arrows, but others flew out.
Here is my code:
using DTP.Projectile;
using Microsoft .Xna.Framework;
using Terraria;
using...
I want my crossbow to shoot randomly 2-3 arrows at a time. It is necessary to copy this ability from the "Chlorophytic crossbow". And how to make arrows turn into frostburn arrow?
Here is my code:
using DTP.Items;
using Microsoft.Xna.Framework;
using System;
using System.Diagnostics;
using...
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using System;
using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria.ModLoader.Utilities;
namespace DTP.NPCs
{
public class Cursedslime : ModNPC
{
public override...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.