Jump to content

Custom Weapon not going back to correct inventory slot?


bigpak

Recommended Posts

My custom weapon is not going back to the inventory slot it is in when I unequip it, instead it is going into my piggyback. I am not sure why, can someone please take a look at my code?

 

Any ideas on why it is doing this? I am so confused...

 

http://pastebin.com/gNS3NMhs

 

EDIT: Does it have anything to do with the piggybacks code? I feel as if an item goes in there, it is... cursed to constantly go back in there after it has gone in there once. I am using the RPG HUD all in one, let me grab the code.

 

NOTE: This is NOT my code, I do not want to take credit for something I have not done. The code belongs ot the author of the RPG HUD mod.

 

http://pastebin.com/mAmZiks5

 

Anyone? :c

Link to comment
Share on other sites

I have experienced this with "not quiet" tools (such as the cane), as the game doesn't recognize them as tools and thus orders them differently. Did you try to distinctly put it into a slot before equipping it (maybe using right-click)?

 

Sadly yes, I have tried everything. It seems to me that if it has gone in the piggyback, it will always go back to it. I am going to do further testing today and attempt to clean up some code and see if that fixes anything, doubtful but hey, maybe I can pinpoint it? *shrugs*

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...