Jump to content

Custom weapon causes CTD when I swing it.


Recommended Posts

Hi guys. I'm trying out a script that "removes" a weapon's existing enchantment (as in, non-player-made enchantments) and outputs a non-enchanted version. I do it by creating a duplicate weapon with the exception of the original's old enchantment. Here are the steps that I did which caused the CTD:

  • I have a weapon with an existing enchantment
  • I have a weapon made in CK that's basically just a blank slate
  • I create a function in my script to copy the existing weapon's stats and attributes into the CK-made blank slate weapon (CKWeapon.set<Stat>(weapon.get<Stat>))
  • I equip the CK-made weapon, and it successfully duplicated all the stuff (name, gold value, model, damage, reach, etc)
  • I swing the weapon and... CTD; Papryus log doesn't show me anything useful
Any idea on what might be causing this?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...