Author Topic: Bug when changing player datablock.  (Read 1324 times)

When my player using a weapon with hands in model (he's hands disappear) , and then I change datablock, the hands show up. is there a way to not let it happen? I don't want to edit all the weapons which using hands in model.. only the player type..
« Last Edit: July 17, 2015, 05:30:23 AM by BlockAlpha »

Might fix it: Try using setDataBlock instead of changeDataBlock.


The weapon seems to only hide the hands when you equip it. You'd likely need to either modify it to hide hands in GameConnection::applyBodyParts as well or to work around it some other way.

when changing the datablock, you could quickly unequip and reequip the current item

when changing the datablock, you could quickly unequip and reequip the current item
How this should be code?

How this should be code?
Get mounted image before changing datablock, then set it after changing datablock.