waqmaz
Member
- Joined
- Jun 17, 2015
- Messages
- 203
- Reaction score
- 11
I use script
to tansfor a moveable corpse of rat with id 2813 to moveable corpse of rat with id 2814. After that the corpse with id 2814 is non-moveable in game. I tried to set its aid with function
but it is still non-moveable. Otmapeditor shows that both corpses are moveable. Only if I add the corpse with map editor normally on a map, in the game it is moveable.
Which lines in source do I have to delete, to make it moveable? I think decay system is a little bit bugged in 0.3.6.
Here is proof, that doTransformItem function works with decay:
Lua:
doTransformItem(getTileItemById())
C++:
const ItemType& it = Item::items.getItemType(item->getID());
if(it.decayTo)
{
Item* newItem = transformItem(item, it.decayTo);
startDecay(newItem);
}
Which lines in source do I have to delete, to make it moveable? I think decay system is a little bit bugged in 0.3.6.
Here is proof, that doTransformItem function works with decay:
Last edited: