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.

Clopen

Combining Properties of Item Stacks on Combining

Recommended Posts

Clopen    12

I've added some components to certain prefabs which are stackable.
I'd like to make it so that when two stacks of these prefabs are combined, the properties of the extra component would be decided by a custom piece of code.
At the moment, one item remains and its stack size increases, while the other disappears, which means the properties are decided by whichever item happens to remain.
Usually I would want these properties to be reset to some minimum/maximum instead.

Is it possible to do this?

Thanks in advance. =)

Share this post


Link to post
Share on other sites
Clopen    12

Same problem on splitting stacks (the created items should inherit properties of the original).

Share this post


Link to post
Share on other sites