1. For issues you find with the Switch and Console releases, please follow this link and give as much detail as possible. This is the speediest way to get info to Pipeworks and get a hotfix in the works.
    Dismiss Notice

tAPI Endgame Gods coding help needed

Discussion in 'General Mod Discussion' started by KingKirmit, Mar 26, 2015.

  1. KingKirmit

    KingKirmit Golem

    In my current WIP Endgame Gods I have a projectile, created by the amazing Sin Costan, that inflicts a Frozen DeBuff.
    This DeBuff is supposed to stop the enemy in place, or greatly decrease their speed if not possible, but when ever the DeBuff is inflicted on a flying mob's bodies or tail the game crashes with this error.

    System.IndexOutOfRangeException: Index was outside the bounds of the array.
      at SwordsofGods.IceDragonLegs.AI() in \Swords of Gods\NPCs\Bosses\IceDragon\IceDragonLegs.cs at line 23
      at Terraria.NPC.AI()
      at Terraria.NPC.UpdateNPC(System.Int32 i)
      at Terraria.Main.UpdateReal(Microsoft.Xna.Framework.GameTime gameTime)
    If anyone knows how to fix this, or how to code such a DeBuff any help will be GREATLY appreciated and credited. :)

    Your Modding Newcomer,
    [​IMG] King Kirmit​
    Last edited: Mar 27, 2015